Skip to contents

Is the object an EML constant literal?

Usage

is_eml_const(x)

Arguments

x

object to test.

Value

Logical scalar.

See also

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

Examples

is_eml_const(1) # TRUE
#> [1] TRUE
is_eml_const(0 + 1i) # TRUE
#> [1] TRUE
is_eml_const(c(1, 2)) # FALSE — length-2 vector
#> [1] FALSE
is_eml_const(quote(x)) # FALSE — name
#> [1] FALSE