harvestr: A Simple Reproducible Parallel Simulation Framework
Description
harvestr
package
Caching
The functions in harvestr
can cache results for faster and
interuptible simulations. This option defaults to FALSE
but can be
chosen by specifying the cache
parameter in any of the functions
that produce results. The caching is performed by saving a RData file in a specified caching
directory. The default directory is named "harvestr-cache" and resides
under the working directory. This can be specified by setting
the harvestr.cache.dir
option
. Files in this directory
use file names derived from hashes of the expression to evaluate. Do not
modify the file names.Options
The following options control behavior and default values for harvestr.
-
harvestr.use.cache=FALSE
- Should results be cached for fault
tollerance and accelerated reproducability?
-
harvestr.cache.dir="harvestr-cache"
- The directory to use for
storing cached results.
-
harvestr.time=FALSE
- Should results be timed?
-
harvestr.use.try=!interactive()
- Should the vectorized calls use try
to increase fault tollerance?
-
harvestr.try.silent=FALSE
- Should try be run silently?
-
harvestr.try.summary=TRUE
- Print a result if errors were found?
-
harvestr.parallel
- Run results in parallel? Default is to run in parallel if a parallel back end is registered and the call is the uppermost harvestr call.
-
harvestr.progress
- Use a progress bar? Default is to show a bar in interactive mode for top level call, but the type is platform dependent.