pipe_append_to_step_names {pipeflow}R Documentation

Append string to all step names

Description

Appends string to all step names and takes care of updating step dependencies accordingly.

Usage

pipe_append_to_step_names(pip, postfix, sep = ".")

Arguments

pip

Pipeline object

postfix

string to be appended to each step name.

sep

string separator between step name and postfix.

Value

returns the Pipeline object invisibly

Examples

p <- pipe_new("pipe")
pipe_add(p, "step1", \(x = 1) x)
pipe_add(p, "step2", \(y = 1) y)
pipe_append_to_step_names(p, "new")
p
pipe_append_to_step_names(p, "foo", sep = "__")
p

[Package pipeflow version 0.2.2 Index]