| pip_new | R Documentation |
Creates a new, empty pipeline. Add steps with pip_add() and execute
them with pip_run().
pip_new(name = "pipe")
name |
Single name used for printing and for derived view names. |
A pipeflow pipeline object.
# Create a named pipeline
p <- pip_new("my_analysis")
p[["name"]] # "my_analysis"
# Build a simple pipeline and run it
pip_add(p, "load", \(n = 5) seq_len(n))
pip_add(p, "double", \(x = ~load) x * 2) # x depends on load's output
p
pip_run(p)
p[["out"]] # list of outputs, one per step
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.