canivt uses two optional cache locations, each controlled by an R option (or
the matching environment variable, which is read into the option when the
package loads so it can be set in .Renviron):
Usage
ivt_cache_dir(which = c("ivt", "data"), create = TRUE)Value
The cache directory path (a tempdir() subfolder when the option is
unset).
Details
ivt– raw downloaded.ivtfiles, optioncanivt.ivt_cache(env varCANIVT_IVT_CACHE). When unset, downloads go to a per-sessiontempdir()folder and are discarded at the end of the session.data– parsed Parquet data and metadata that should persist across sessions, optioncanivt.data_cache(env varCANIVT_DATA_CACHE). When unset, parsed output goes totempdir()(and is lost when the session ends; a one-time startup message points this out).
Set them either as options (e.g. in .Rprofile):
options(canivt.data_cache = "~/canivt-cache"), or as environment variables
(e.g. in .Renviron): CANIVT_DATA_CACHE=~/canivt-cache.
