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

contains_else_expr_that_needs_braces

Check whether an else expression needs braces


Description

Checks whether an else expression in a nest needs braces. Note that for if-else-if expressions, there is no need to add braces since the if in else-if will be visited separately with the visitor. This applies to all conditional statements with more than one alternative.

Usage

contains_else_expr_that_needs_braces(pd)

Arguments

pd

A parse table


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.