drake
project.Use drake_cache()
instead.
get_cache(path = getwd(), search = TRUE, verbose = 1L,
force = FALSE, fetch_cache = NULL, console_log_file = NULL)
Character, either the root file path of a drake
project
or a folder containing the root (top-level working directory
where you plan to call make()
).
If this is too confusing, feel free to just use storr::storr_rds()
to get the cache.
If search = FALSE
, path
must be the root.
If search = TRUE
, you can specify any
subdirectory of the project. Let's say "/home/you/my_project"
is the root. The following are equivalent and correct:
get_cache(path = "/home/you/my_project", search = FALSE)
get_cache(path = "/home/you/my_project", search = TRUE)
get_cache(path = "/home/you/my_project/subdir/x", search = TRUE)
get_cache(path = "/home/you/my_project/.drake", search = TRUE)
get_cache(path = "/home/you/my_project/.drake/keys", search = TRUE)
Deprecated.
Integer, control printing to the console/terminal.
0
: print nothing.
1
: print targets, retries, and failures.
2
: also show a spinner when preprocessing tasks are underway.
Deprecated.
Deprecated.
Optional character scalar of a file name or
connection object (such as stdout()
) to dump maximally verbose
log information for make()
and other functions (all functions that
accept a config
argument, plus drake_config()
).
If you choose to use a text file as the console log,
it will persist over multiple function calls
until you delete it manually.
Fields in each row the log file, from left to right:
- The node name (short host name) of the
computer (from Sys.info()["nodename"]
).
- The process ID (from Sys.getpid()
).
- A timestamp with the date and time (in microseconds).
- A brief description of what drake
was doing. The fields are separated by pipe symbols (
"|"`).
Deprecated on 2019-05-25.