| pip_collect_out | R Documentation |
Returns the outputs of all pipeline steps as a flat named list keyed by
step name. Use pip_view() to narrow the selection before collecting,
and compose calls if grouped output is needed.
pip_collect_out(x)
x |
A pipeflow pip or view. |
A named list of outputs, one element per step.
p <- pip_new() |>
pip_add("load", \(x = 1) x, tags = "io") |>
pip_add("clean", \(x = ~load) x + 1, tags = "io") |>
pip_add("model", \(x = ~clean) x * 2, tags = "model")
pip_run(p)
# Flat named list with one entry per step
pip_collect_out(p)
# Combine with pip_view to collect output for specific tags
grouped <- list(
io = pip_view(p, tags = "io") |> pip_collect_out(),
model = pip_view(p, tags = "model") |> pip_collect_out()
)
grouped
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.