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
(i.e. format = "file") the paths loaded in place of the values.
Usage
tar_load(names, branches = NULL, meta = tar_meta(), envir = parent.frame())
Arguments
names
Names of the targets to build or check. Set to NULL to
check/build all the targets (default). Otherwise, you can supply
symbols, a character vector, or tidyselect helpers like starts_with().
branches
Integer of indices of the branches to load
for any targets that are patterns.
meta
Data frame of metadata from tar_meta().
tar_read() with the default arguments can be inefficient for large
pipelines because all the metadata is stored in a single file.
However, if you call tar_meta() beforehand and supply it to the meta
argument, then successive calls to tar_read() may run much faster.