pipe_set_data: Set data

View source: R/aliases.R

pipe_set_dataR Documentation

Set data

Description

Set data in first step of pipeline.

Usage

pipe_set_data(pip, data)

Arguments

pip

Pipeline object

data

initial data set.

Value

returns the Pipeline object invisibly

Lifecycle

Deprecated. Legacy API. Use pip_new() and related pip_* functions.

Examples

p <- pipe_new("pipe", data = 1)
pipe_add(p, "add1", \(x = ~data, y = 1) x + y, keepOut = TRUE)
p |>
  pipe_run() |>
  pipe_collect_out()

pipe_set_data(p, 3)
p |>
  pipe_run() |>
  pipe_collect_out()

pipeflow documentation built on June 15, 2026, 9:10 a.m.