Skip to contents

TRUE for length-1 numeric/complex, names, and eml calls (including nested ones). Returns FALSE for arbitrary calls — quote(x + y) is not an EML expression.

Usage

is_eml_expr(x)

Arguments

x

object to test.

Value

Logical scalar.

See also

Other eml_predicates: is_eml_call(), is_eml_const(), is_eml_var()

Examples

is_eml_expr(1)
#> [1] TRUE
is_eml_expr(quote(x))
#> [1] TRUE
is_eml_expr(quote(eml(1, x)))
#> [1] TRUE
is_eml_expr(quote(x + y)) # FALSE
#> [1] FALSE