| pip_tag | R Documentation |
Adds tags to, or removes tags from, all steps of a pipeline or a subset
of steps defined by a view. Tagged steps can later be selected via
pip_view().
pip_tag(x, tags = character())
pip_untag(x, tags = character())
x |
A pipeflow pip or view. |
tags |
Character vector of tags to add to or remove from each selected step. |
The updated pipeline or view, invisibly.
p <- pip_new() |>
pip_add("load", \(x = 1) x) |>
pip_add("fit", \(x = ~load) x + 1)
# Tag every step in the pipeline at once
pip_tag(p, c("daily", "core"))
p
p[, "tags"] # both steps have c("daily", "core")
# Add an extra tag to only one step via a view
p[step == "fit"] |> pip_tag("model")
p
p[, "tags"] # "fit" also has "model"
# Remove "daily" from all steps
pip_untag(p, "daily")
p[, "tags"]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.