Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wrap_multiline_curly

Wrap a multi-line statement in curly braces


Description

Wrap a multi-line statement in curly braces

Usage

wrap_multiline_curly(pd, indent_by, space_after = 1, key_token)

Arguments

pd

A parse table.

indent_by

The amount of spaces used to indent an expression in curly braces. Used for unindention.

space_after

How many spaces should be inserted after the closing brace.

key_token

The token that comes right before the token that contains the expression to be wrapped (ignoring comments). For if and while loops, this is the closing "')'", for a for-loop it's "forcond".


styler

Non-Invasive Pretty Printing of R Code

v1.4.1
MIT + file LICENSE
Authors
Kirill Müller [aut], Lorenz Walthert [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.