qa_cache_dir | R Documentation |
The cache directory is used to store data locally, so that they can be used offline later. If called with no arguments (i.e. qa_cache_dir()
), this function returns the current cache directory. By default, this is a per-session temporary directory. Calling with a path
argument will set the cache directory to that path.
qa_cache_dir(path, verbose = FALSE)
path |
string: (optional) Values can be "session" (a per-session temporary directory will be used, default), "persistent" (the directory returned by |
verbose |
logical: show progress messages? |
The path to the cache directory
qa_get
## return the current cache directory
qa_cache_dir()
## set the cache directory to a location that persists across
## user sessions
qa_cache_dir("persistent")
## switch to a per-session cache
qa_cache_dir("session")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.