Skip to contents

whether the expression is an atomic one

Usage

atomic_expr(ex)

Arguments

ex

expression

Value

logical value

Examples

atomic_expr(rlang::expr(x))
#> [1] TRUE

atomic_expr(rlang::expr(!x))
#> [1] TRUE

atomic_expr(rlang::expr(x + y))
#> [1] TRUE

atomic_expr(rlang::expr(x > 1))
#> [1] TRUE

atomic_expr(rlang::expr(!x + y))
#> [1] FALSE

atomic_expr(rlang::expr(x > 1 | y < 2))
#> [1] FALSE