Skip to contents

Strict syntactic check: is.call(x) and the head is the symbol eml and the call has exactly two arguments. Does not recurse into the children.

Usage

is_eml_call(x)

Arguments

x

object to test.

Value

Logical scalar.

See also

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

Examples

is_eml_call(quote(eml(1, x)))
#> [1] TRUE
is_eml_call(quote(eml(1, x + y))) # TRUE structurally; children not checked
#> [1] TRUE
is_eml_call(quote(x + y)) # FALSE
#> [1] FALSE