Destroy all or part of the data store.
Destroy all or part of the data store written
by tar_make()
and similar functions.
tar_destroy( destroy = c("all", "meta", "process", "progress", "objects", "scratch", "workspaces"), ask = NULL, store = targets::tar_config_get("store") )
destroy |
Character of length 1, what to destroy. Choices:
|
ask |
Logical of length 1, whether to pause with a menu prompt
before deleting files. To disable this menu, set the |
store |
Character of length 1, path to the
|
tar_destroy()
is a hard reset. Use it if you
intend to start the pipeline from scratch without
any trace of a previous run in _targets/
.
Global objects and dynamic files outside the
data store are unaffected.
Nothing.
Other clean:
tar_delete()
,
tar_invalidate()
,
tar_prune()
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() # Creates the _targets/ data store. tar_destroy() print(file.exists("_targets")) # Should be FALSE. }) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.