Always verify a compact artifact selection in targets
reflow_artifact_target.RdCreates an optional targets RDS target with an always cue. Every make calls the selector; the stored value is only a compact reference. No graph payloads are copied. A targets cache read alone does not verify current files: consumers must call reflow_artifact_selection_verify immediately before use. Plan expressions must not embed raw payloads.
Examples
if (requireNamespace("targets", quietly = TRUE)) {
registry <- file.path(normalizePath(tempdir(), winslash = "/", mustWork = TRUE), "registry")
# The plan expression is stored unevaluated and runs at every make
target <- reflow_artifact_target("selection", quote(my_plan()), registry)
target$command$expr
}
#> expression(reflowR::reflow_artifact_select(my_plan(), "/tmp/Rtmp5ObUUD/registry"))