Copernicus subsets are slow to fetch and rarely change, so accessEnvDat()
writes each one to disk and reads it back on later calls. This resolves where
that cache lives.
Arguments
- ...
path components appended to the cache root, as
file.path()
Details
The location is taken from the first of these that is set:
getOption("datamatch.cache")the
DATAMATCH_CACHEenvironment variabletools::R_user_dir(), the per-package location R reserves for exactly this purpose
The third is a working default, so nothing has to be configured before the first download. Set one of the first two to put the cache on a larger disk, or to share one cache between projects: