Skip to contents

There are two kinds of quotations: forced and unforced. Unforced quotations have an expression and an environment; forced quotations have an expression and a value.

forced(q) tests whether a quotation is forced.

forced(d) on a dots object tests whether each element is forced, and returns a logical vector.

force_(x) converts an unforced quotation or dots object into a forced one, by evaluating it.

value(x) or values(...) returns the value of a quotation or dots, forcing it if necessary.

Usage

forced(x)

# S3 method for quotation
forced(x, ...)

# S3 method for dots
forced(x)

# S3 method for default
forced(x)

force_(x, ...)

# S3 method for quotation
force_(x, eval = base::eval, ...)

# S3 method for dots
force_(x, ...)

value(x, ...)

# S3 method for quotation
value(x, ...)

# S3 method for dots
value(x, ...)

values(x)

# S3 method for dots
values(x)

Arguments

x

A quotation or dots object.

...

Options used by methods

eval

Which evaluation function to use.

Value

forced(x) returns a logical.

value(x) returns the result of forcing the quotation.

values returns a list.

See also

is_forced forced_quo

force