Skip to contents

This additive API permits reflow_artifact_ref() in ordinary arguments. Static declarations are validated immediately; future artifact paths are resolved only after their producers have been authenticated. Scientific methods remain in trusted installed exports. No writer runs here.

Usage

reflow_artifact_stage(
  id,
  package,
  fun,
  args = list(),
  outputs,
  inventory,
  allow_empty = character(),
  seed = NULL,
  packages = character(),
  runtime_files = character()
)

Arguments

id

Stage identifier, unique within a plan even when letter case is ignored.

package, fun, args, outputs, inventory, allow_empty, seed, packages, runtime_files

See reflow_artifact_spec().

Value

A deferred writer declaration.

Examples

stage <- reflow_artifact_stage(
  "data", "base", "saveRDS",
  args = list(object = c(alpha = 1.5, beta = 2.5)),
  outputs = list(file = list(path = "values.rds", type = "file")),
  inventory = c(values = "values.rds")
)
stage$id
#> [1] "data"
stage$declaration$inventory
#>       values 
#> "values.rds"