func1 = function(x) {
x
}
pipeline = Pipeline() |>
add_node(component = func1, name = "Func1", input = "file") |>
add_node(component = func1, name = "Func2", input = "Func1") |>
add_node(component = func1, name = "Func3", input = "Func2")
run(pipeline, file = mtcars)
run(pipeline, start = "Func2", Func1 = iris)
run(pipeline, halt = "Func2", file = mtcars)
Run the code above in your browser using DataLab