Read a target's return value from its file in
_targets/objects/
. For dynamic files (i.e. format = "file"
)
the paths are returned.
tar_read(name, branches = NULL, meta = tar_meta())
Symbol, name of the target to read.
Integer of indices of the branches to load if the target is a pattern.
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.
The target's return value from its file in
_targets/objects/
, or the paths to the custom files and directories
if format = "file"
was set.
Other data:
tar_load_raw()
,
tar_load()
,
tar_meta()
,
tar_objects()
,
tar_pid()
,
tar_process()
,
tar_read_raw()
# NOT RUN {
tar_dir({ # tar_dir() runs code from a temporary directory.
tar_script(list(tar_target(x, 1 + 1)), ask = FALSE)
tar_make()
tar_read(x)
})
# }
Run the code above in your browser using DataLab