This will be used internally if
options("reproducible.futurePlan" = TRUE).
This is still experimental.
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
if using a database backend, drv must be an object that inherits from DBIDriver e.g., from package RSQLite, e.g., 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
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
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.
Run for its side effect.
This will add the
objectToSave to the cache located at
cacheId as its id, while
updating the database entry. It will do this using the future package, so it is
written in a future.