powered by
Creates a copy of a pipeline object.
pipe_clone(pip, deep = FALSE)
returns the copied Pipeline object
Pipeline
Pipeline object
logical whether to perform a deep copy
logical
p1 <- pipe_new("pipe") pipe_add(p1, "step1", \(x = 1) x) p2 <- pipe_clone(p1) pipe_add(p2, "step2", \(y = 1) y) p1 p2
Run the code above in your browser using DataLab