swap

Swap a Pipeline Node Implementation

Replaces a node’s implementation with a new node value. The dependency edges of the replaced node are preserved — this operation only changes the node’s command and metadata. Use rewire to change dependencies.

Parameters

Returns

A new pipeline with the node replaced.

Examples

p |> swap("model_r", node(command = <{ lm(y ~ x, data) }>, runtime = R))

See Also

patch, rename_node, rewire