is_lang: Is an object a language object?

Description Usage Arguments See Also Examples

Description

These helpers are consistent wrappers around their base R equivalents. A language object is either an atomic vector (typically a scalar), a name (aka a symbol), a call, or a pairlist (used for function arguments).

Usage

1
2
3
4
5
6
7
8
9

Arguments

x

An object to test.

See Also

as_name() and as_call() for coercion functions.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
q1 <- quote(1)
is_lang(q1)
is_atomic(q1)

q2 <- quote(x)
is_lang(q2)
is_name(q2)

q3 <- quote(x + 1)
is_lang(q3)
is_call(q3)

lazyeval documentation built on May 2, 2019, 2:11 a.m.