Downloaded archive snapshots, boundaries and lookups are cached on disk so
that they are fetched at most once. The cache lives under
tools::R_user_dir("streetlamp", "cache") unless overridden by the option
streetlamp.cache_dir or the environment variable STREETLAMP_CACHE_DIR
(the option wins). Tests and examples never write to the default location.
Examples
# Point the cache at a temporary directory for the duration of the example
old <- options(streetlamp.cache_dir = tempfile("streetlamp-cache-"))
lamp_cache_dir()
#> [1] "/tmp/RtmpjpgtJA/streetlamp-cache-1cb0e04e80"
lamp_cache_clear()
#> Cleared 0 files from /tmp/RtmpjpgtJA/streetlamp-cache-1cb0e04e80.
options(old)