INFOSIGA-SP ships its data as a single archive of roughly 120 MB (uncompressed, over 700 MB). To avoid repeated downloads, infosigasp stores the archive in a per-user cache directory and reuses it across sessions. These functions inspect and manage that cache.
Usage
infosiga_cache_dir()
infosiga_cache_list()
infosiga_cache_clear(confirm = interactive())Value
infosiga_cache_dir()returns the cache directory path (a string). It is a pure accessor with no side effects: the directory itself is created lazily the first time data is written (e.g. byinfosiga_download()), so the reported path may not yet exist.infosiga_cache_list()returns a character vector of cached file paths (possibly empty).infosiga_cache_clear()invisibly returns the paths it removed.
Details
The cache location defaults to the operating-system specific user cache
directory returned by tools::R_user_dir() ("infosigasp", "cache").
You can override it for the current session with the infosigasp.cache_dir
option, e.g. options(infosigasp.cache_dir = "~/my-cache"), or permanently
through your .Rprofile.
