pipe_clone: Clone pipeline

View source: R/aliases.R

pipe_cloneR Documentation

Clone pipeline

Description

Creates a copy of a pipeline object.

Usage

pipe_clone(pip, deep = FALSE)

Arguments

pip

Pipeline object

deep

logical whether to perform a deep copy

Value

returns the copied Pipeline object

Examples

p1 <- pipe_new("pipe")
pipe_add(p1, "step1", \(x = 1) x)
p2 <- pipe_clone(p1)
pipe_add(p2, "step2", \(y = 1) y)
p1
p2

pipeflow documentation built on April 3, 2025, 10:50 p.m.