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

wrap_expr_in_curly

Wrap an expression in curly braces


Description

Adds curly braces to an expression (represented as a parse table) if there are none.

Usage

wrap_expr_in_curly(pd, stretch_out = c(FALSE, FALSE), space_after = 1)

Arguments

pd

A parse table.

stretch_out

Whether or not to create a line break after the opening curly brace and before the closing curly brace.

space_after

How many spaces should be inserted after the closing brace.


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.