powered by
Convert an unevaluted pipeline into a function of "."
as_dot_fn(pipeline, env = parent.frame())
a un-evaluated wrapr pipeline.
envirnonment to work in.
single function with signature (., env = parent.frame())
Note: writes "." into env.
# NOT RUN { f <- as_dot_fn(sin(.) %.>% cos(.)) f(1:3) g <- as_dot_fn(. %.>% sin(.) %.>% cos(.)) g(1:3) # }
Run the code above in your browser using DataLab