Skip to contents

Get output of given step

Usage

pipe_get_out(pip, step)

Arguments

pip

Pipeline object

step

string name of step

Value

the output at the given step.

See also

pipe_collect_out() to collect output of multiple steps.

Examples

p <- pipe_new("pipe", data = 1:2)
pipe_add(p, "add1", \(x = ~data) x + 1)
pipe_add(p, "add2", \(x = ~data, y = ~add1) x + y)
pipe_run(p)
#> INFO  [2025-01-03 19:12:42.412] Start run of 'pipe' pipeline:
#> INFO  [2025-01-03 19:12:42.413] Step 1/3 data
#> INFO  [2025-01-03 19:12:42.415] Step 2/3 add1
#> INFO  [2025-01-03 19:12:42.417] Step 3/3 add2
#> INFO  [2025-01-03 19:12:42.419] Finished execution of steps.
#> INFO  [2025-01-03 19:12:42.419] Done.
pipe_get_out(p, "add1")
#> [1] 2 3
pipe_get_out(p, "add2")
#> [1] 3 5