This interpolates values in the formula that are defined in its environment, replacing the environment with its parent.

f_unwrap(f)

Arguments

f

A formula to unwrap.

Examples

n <- 100
f <- ~ x + n
f_unwrap(f)
#> ~x + 100
#> <environment: 0x5636a4f74ab0>