Create a formula object by "hand".

f_new(rhs, lhs = NULL, env = parent.frame())

Arguments

lhs, rhs

A call, name, or atomic vector.

env

An environment

Value

A formula object

Examples

f_new(quote(a))
#> ~a
#> <environment: 0x5636a52af9e8>
f_new(quote(a), quote(b))
#> b ~ a
#> <environment: 0x5636a52af9e8>