tests/testthat/test_pipelines_fan_out_collect/fan_out_collect.R

#' @maestroFrequency daily
numbers <- function() {
  1:3
}

#' @maestroInputs numbers
#' @maestroMap
multiply <- function(.input) {
  .input * 3
}

#' @maestroInputs collect(multiply)
add <- function(.input) {
  sum(unlist(.input))
}

Try the maestro package in your browser

Any scripts or data that you put into this service are public.

maestro documentation built on July 2, 2026, 5:07 p.m.