pipe_length: Length of the pipeline

View source: R/aliases.R

pipe_lengthR Documentation

Length of the pipeline

Description

Length of the pipeline

Usage

pipe_length(pip)

Arguments

pip

Pipeline object

Value

numeric length of pipeline, that is, the total number of steps

Lifecycle

Deprecated. Legacy API. Use length() instead.

Examples

p <- pipe_new("pipe", data = 1:2)
pipe_add(p, "f1", \(x = 1) x)
pipe_add(p, "f2", \(y = 1) y)
p
pipe_length(p)

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