Learn R Programming

rlang (version 1.1.4)

new_formula: Create a formula

Description

Create a formula

Usage

new_formula(lhs, rhs, env = caller_env())

Value

A formula object.

Arguments

lhs, rhs

A call, name, or atomic vector.

env

An environment.

See Also

new_quosure()

Examples

Run this code
new_formula(quote(a), quote(b))
new_formula(NULL, quote(b))

Run the code above in your browser using DataLab