Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

file_drawer

Manage the ggmap file drawer.


Description

To avoid downloading the same maps again and again, ggmap uses a "file drawer" to store the maps you've downloaded. By default, they will be stored in a session specific temporary directory which will be deleted each time you quit R. If you want them to persist across sessions, set the global option "ggmap.file_drawer".

Usage

file_drawer(...)

Examples

## Not run:  if server is unresponsive, R check will fail

file_drawer()
dir(file_drawer())

# The first time you run this, the tiles are downloaded from the server
map <- get_stamenmap()
# The second time, the local cache is used so it's much faster
map <- get_stamenmap()

dir(file_drawer())


## End(Not run)

ggmap

Spatial Visualization with ggplot2

v3.0.0
GPL-2
Authors
David Kahle [aut, cre] (<https://orcid.org/0000-0002-9999-1558>), Hadley Wickham [aut] (<https://orcid.org/0000-0003-4757-117X>), Scott Jackson [aut], Mikko Korpela [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.