Convert a pipeable object into a function of "."

as_fn(pipeable, env = parent.frame())

Arguments

pipeable

a wrapr dot-pipe pipeable object

env

envirnonment to work in.

Value

single function with signature (., env = parent.frame())

Details

Note: writes "." into env.

Examples

p <- pkgfn("base::sin", "x") f <- as_fn(p) f(5)
#> [1] -0.9589243