contains_else_expr_that_needs_braces: Check whether an else expression needs braces

View source: R/expr-is.R

contains_else_expr_that_needs_bracesR Documentation

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 documentation built on Aug. 29, 2023, 5:10 p.m.