Intended for internal use. Exported so other packages can use this function.
.isMemoised(cacheId, cachePath = getOption("reproducible.cachePath"))
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.
A repository used for storing cached objects.
This is optional if Cache
is used inside a SpaDES module.
A logical, length 1 indicating whether the cacheId
is memoised.