Input a chain in magrittr syntax and make it a lazyeval function.

lazy(x)

Arguments

x

magrittr chain of functions

Value

function

See also

Other ripe: ripe()

Examples

f <- stats::runif(20)%>%sample(10)%>%lazy() f()
#> [1] 0.49884561 0.94857658 0.38918276 0.70643384 0.09602416 0.46118646 #> [7] 0.49363702 0.68016292 0.66028435 0.17467589