Builds the reflow_artifact_stage() for reflow_call_writer(): the stage
saves the value of fun as the artifact value (value.rds) and a
tab-separated copy as table (value.tsv, empty for values that are not
plain data frames). The package of fun and any packages are
fingerprinted. Refer to the value downstream with
reflow_artifact_ref(id, "value", read = TRUE).
Arguments
- id
Stage identifier, unique within a plan even when letter case is ignored.
- fun
One string
"package::function"naming an exported function.- args
Uniquely named list of arguments; may contain
reflow_artifact_ref()andreflow_imaging_input()values at any depth.- seed
Explicit nonnegative integer seed, or NULL for a nonrandom call.
- packages
Additional installed packages to fingerprint, such as optional packages that
funuses.
Examples
stage <- reflow_call_stage("top", "utils::head", list(x = 1:10, n = 3))
stage$declaration$inventory
#> value table
#> "value.rds" "value.tsv"