View source: R/s3_drake_settings.R
new_drake_settings | R Documentation |
drake_settings
constructorList of class drake_settings
.
new_drake_settings(
cache_log_file = NULL,
curl_handles = NULL,
garbage_collection = NULL,
jobs = NULL,
jobs_preprocess = NULL,
keep_going = NULL,
lazy_load = NULL,
lib_loc = NULL,
lock_envir = NULL,
lock_cache = NULL,
log_build_times = NULL,
log_progress = NULL,
memory_strategy = NULL,
parallelism = NULL,
recover = NULL,
recoverable = NULL,
seed = NULL,
session_info = NULL,
skip_imports = NULL,
skip_safety_checks = NULL,
skip_targets = NULL,
sleep = NULL,
template = NULL,
log_worker = NULL
)
cache_log_file |
Name of the CSV cache log file to write.
If |
curl_handles |
A named list of curl handles. Each value is an
object from
|
garbage_collection |
Logical, whether to call |
jobs |
Maximum number of parallel workers for processing the targets.
You can experiment with |
jobs_preprocess |
Number of parallel jobs for processing the imports and doing other preprocessing tasks. |
keep_going |
Logical, whether to still keep running |
lazy_load |
An old feature, currently being questioned.
For the current recommendations on memory management, see
If |
lib_loc |
Character vector, optional.
Same as in |
lock_envir |
Deprecated in |
lock_cache |
Logical, whether to lock the cache before running |
log_build_times |
Logical, whether to record build_times for targets.
Mac users may notice a 20% speedup in |
log_progress |
Logical, whether to log the progress
of individual targets as they are being built. Progress logging
creates extra files in the cache (usually the |
memory_strategy |
Character scalar, name of the
strategy
For even more direct
control over which targets |
parallelism |
Character scalar, type of parallelism to use.
For detailed explanations, see
You could also supply your own scheduler function
if you want to experiment or aggressively optimize.
The function should take a single
|
recover |
Logical, whether to activate automated data recovery.
The default is
How it works: if
If both conditions are met,
Functions |
recoverable |
Logical, whether to make target values recoverable
with |
seed |
Integer, the root pseudo-random number generator
seed to use for your project.
In To ensure reproducibility across different R sessions,
On the first call to |
session_info |
Logical, whether to save the |
skip_imports |
Logical, whether to totally neglect to
process the imports and jump straight to the targets. This can be useful
if your imports are massive and you just want to test your project,
but it is bad practice for reproducible data analysis.
This argument is overridden if you supply your own |
skip_safety_checks |
Logical, whether to skip the safety checks on your workflow. Use at your own peril. |
skip_targets |
Logical, whether to skip building the targets
in |
sleep |
Optional function on a single numeric argument To conserve memory, For parallel processing, The To sleep for the same amount of time between checks,
you might supply something like |
template |
A named list of values to fill in the |
log_worker |
Logical, same as the |
A drake_settings
object.
if (FALSE) { # stronger than roxygen dontrun
new_drake_settings()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.