R/formula.R

new_formula.Rd

Create a formula

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

A call, name, or atomic vector.

An environment.

A formula object.

new_quosure()

new_formula(quote(a), quote(b)) #> a ~ b #> <environment: 0x562ec2103c90> new_formula(NULL, quote(b)) #> ~b #> <environment: 0x562ec2103c90>