Example showing how to build an object that captures pipeline stages, instead of executing them.

library(wrapr)
source("CapturePipeline.R")
seq <- Collector() %.>% paste("a", .) %.>% paste(., "b")
f <- sequence_as_function(seq)
f("x")
"z" %.>% f


WinVector/wrapr documentation built on Aug. 29, 2023, 4:51 a.m.