pipe_set_keep_out | R Documentation |
Change the keepOut
flag at a given pipeline step,
which determines whether the output of that step is collected
when calling pipe_collect_out()
after the pipeline was run. See column
keepOut' when printing a pipeline to view the status.
pipe_set_keep_out(pip, step, keepOut = TRUE)
pip |
|
step |
|
keepOut |
|
the Pipeline
object invisibly
p <- pipe_new("pipe", data = 1)
pipe_add(p, "add1", \(x = ~data, y = 1) x + y, keepOut = TRUE)
pipe_add(p, "add2", \(x = ~data, y = 2) x + y)
pipe_add(p, "mult", \(x = ~add1, y = ~add2) x * y)
p |> pipe_run() |> pipe_collect_out()
pipe_set_keep_out(p, "add1", keepOut = FALSE)
pipe_set_keep_out(p, "mult", keepOut = TRUE)
p |> pipe_run() |> pipe_collect_out()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.