Defunct lifecycle

These functions are deprecated as of rlang 0.2.0 because they make the assumption that quosures are a subtype of formula, which we are now considering to be an implementation detail.

is_quosureish(x, scoped = NULL)

as_quosureish(x, env = caller_env())

Arguments

x

An object to test.

scoped

A boolean indicating whether the quosure is scoped, that is, has a valid environment attribute. If NULL, the scope is not inspected.

env

The environment in which the expression should be evaluated. Only used for symbols and calls. This should typically be the environment in which the expression was created.