Load the return values of targets into the current environment
(or the environment of your choosing). For a typical target, the return
value lives in a file in
_targets/objects/. For dynamic files
format = "file") the paths loaded in place of the values.
tar_load( names, branches = NULL, meta = tar_meta(targets_only = TRUE, store = store), strict = TRUE, silent = FALSE, envir = parent.frame(), store = targets::tar_config_get("store") )
Names of the targets to load. You can supply
symbols, a character vector, or
Integer of indices of the branches to load for any targets that are patterns.
Data frame of metadata from
Logical of length 1, whether to error out
if one of the selected targets cannot be loaded.
Logical of length 1. If
Environment to put the loaded targets.
Character of length 1, path to the
are only for exploratory analysis and literate programming,
tar_load_raw() are only
for exploratory analysis.
loads the correct dependencies into memory when the pipeline
is running, so invoking these functions
from inside a target is rarely advisable.