Read a target's value from storage.
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(store = store), store = targets::tar_config_get("store") )
name |
Symbol, name of the target to read. |
branches |
Integer of indices of the branches to load if the target is a pattern. |
meta |
Data frame of metadata from |
store |
Character of length 1, path to the
|
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.
tar_read()
and tar_load()
are only for exploratory analysis and literate programming,
and tar_read_raw()
and tar_load_raw()
are only
for exploratory analysis. targets
automatically
loads the correct dependencies into memory when the pipeline
is running, so invoking these functions
from inside a target is rarely advisable.
Other data:
tar_load_raw()
,
tar_load()
,
tar_meta()
,
tar_objects()
,
tar_pid()
,
tar_process()
,
tar_read_raw()
if (identical(Sys.getenv("TAR_EXAMPLES"), "true")) { 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) }) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.