file_drawer | R Documentation |
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".
file_drawer(...)
## 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_stadiamap()
# The second time, the local cache is used so it's much faster
map <- get_stadiamap()
dir(file_drawer())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.