R: Wrap if-else statement in curly braces

wrap_if_else_multi_line_in_curly {styler} | R Documentation

## Wrap if-else statement in curly braces

### Description

Wrap an if-else statement in curly braces if it is not already wrapped in a such.

### Usage

    wrap_if_else_multi_line_in_curly(pd, indent_by = 2)

### Arguments

`pd` | A parse table.
`indent_by` | The amount of spaces used to indent an expression in curly braces. Used for unindention.

[Package styler version 1.0.2 Index]