| mobdb_cache_path | R Documentation |
Configure the directory where mobdb caches API responses. By default,
mobdb uses tools::R_user_dir("mobdb", "cache").
mobdb_cache_path(path = NULL, install = FALSE, overwrite = FALSE)
path |
Optional. Directory path for cache. If NULL (default), shows current cache path without changing it. |
install |
Logical. If TRUE, adds MOBDB_CACHE_PATH to .Renviron for persistence across R sessions. Default: FALSE |
overwrite |
Logical. If TRUE, overwrites existing MOBDB_CACHE_PATH in .Renviron. Default: FALSE |
Character string with cache path (invisibly)
# Show current cache path
mobdb_cache_path()
# Set for current session only
mobdb_cache_path(file.path(tempdir(), "mobdb_cache_example"))
## Not run:
# Set permanently in .Renviron
mobdb_cache_path("~/my_mobdb_cache", install = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.