Learn R Programming

targets (version 0.11.0)

tar_store: Current data store path

Description

Identify the file path to the data store of the pipeline currently running.

Usage

tar_store()

Arguments

Value

Character, file path to the data store of the pipeline currently running. If called outside of the pipeline currently running, tar_store() returns tar_config_get("store").

See Also

Other utilities: tar_active(), tar_call(), tar_cancel(), tar_definition(), tar_envir(), tar_group(), tar_name(), tar_path(), tar_seed()

Examples

Run this code
# NOT RUN {
tar_store()
if (identical(Sys.getenv("TAR_EXAMPLES"), "true")) {
tar_dir({ # tar_dir() runs code from a temporary directory.
tar_script(tar_target(x, tar_store()), ask = FALSE)
store <- tempfile()
tar_make(store = store)
tar_read(x, store = store)
})
}
# }

Run the code above in your browser using DataLab