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

wrap_else_multiline_curly

Add curly braces to else


Description

Wrap the else part of a conditional expression into curly braces if not already wrapped into a such.

Usage

wrap_else_multiline_curly(pd, indent_by = 2, space_after = 0)

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.


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.