The default cache for map images is tempdir()/mapmiscCache, which will be deleted when an R session ends. Running this function sets a cache in /tmp/mapmiscCache_[username], which will re-use cached data across R sessions.
Returns
persistentCache returns the path to the cach folder.
Examples
# current cachegetOption("mapmiscCachePath")# set a new cachemyCache = file.path(tempdir(),'myCache')dir.create(myCache)options(mapmiscCachePath = myCache)getOption("mapmiscCachePath")# create a persistent cachepersistentCache(verbose=TRUE)getOption("mapmiscCachePath")