pipe_rename_step | R Documentation |
Safely rename a step in the pipeline. If new step name would result in a name clash, an error is given.
pipe_rename_step(pip, from, to)
pip |
|
from |
|
to |
|
the Pipeline
object invisibly
p <- pipe_new("pipe", data = 1:2)
pipe_add(p, "add1", \(data = ~data, x = 1) x + data)
pipe_add(p, "add2", \(x = 1, y = ~add1) x + y)
p
try(pipe_rename_step(p, from = "add1", to = "add2"))
pipe_rename_step(p, from = "add1", to = "first_add")
p
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.