contains_else_expr_that_needs_braces: Check whether an else expression needs braces

Description Usage Arguments

View source: R/expr-is.R

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

1

Arguments

pd

A parse table


krlmlr/styler documentation built on Oct. 25, 2020, 8:13 a.m.