Defunct as of version 3.2.0. The future-based cache writing this supported was
never enabled by default – reproducible.futurePlan defaults to FALSE –
and has been removed. Cache() writes directly.
Integer. If zero or positive then it needs to be written still. Should be 0 to start.
The R object to save to repository
The file path of the repository
Character string of tags to attach to this outputToSave in
the CacheRepo
If using a database backend, drv must be an object that
inherits from DBIDriver (e.g., RSQLite::SQLite).
an optional DBIConnection object, as returned by dbConnect().
Character string. If passed, this will override the calculated hash
of the inputs, and return the result from this cacheId in the cachePath.
Setting this is equivalent to manually saving the output of this function, i.e.,
the object will be on disk, and will be recovered in subsequent
This may help in some particularly finicky situations
where Cache is not correctly detecting unchanged inputs. This will guarantee
the object will be identical each time; this may be useful in operational code.
Optional. If a cacheId is provided here, then a file.link
will be made to the file with that cacheId name in the cache repo.
This is used when identical outputs exist in the cache. This will save disk space.
Numeric, -1 silent (where possible), 0 being very quiet,
1 showing more messaging, 2 being more messaging, etc.
Default is 1. Above 3 will output much more information about the internals of
Caching, which may help diagnose Caching challenges. Can set globally with an
option, e.g., options('reproducible.verbose' = 0) to reduce to minimal
Nothing; it signals a defunct error.