Learn R Programming

ripe (version 0.1.0)

ripe: Replicate magrittr chain

Description

Lazily replicate magrittr chain

Usage

ripe(x, f, ...)

Arguments

x

chain

f

replication function

arguments to pass to f

Value

object that f outputs

See Also

rerun

Other ripe: lazy()

Examples

Run this code
# NOT RUN {
stats::runif(20)%>%
 sample(4)%>%
 ripe(replicate,n=4,simplify=FALSE)
 
stats::runif(20)%>%
 sample(4)%>%
 ripe(lapply,X=1:4)
# }

Run the code above in your browser using DataLab