.setCacheLocation | R Documentation |
biomaRt
cache.setBiomaRtCacheLocation()
attempts to set the cache location
used by the functions in the biomaRt
package and defined in the BIOMART_CACHE
environment variable.
If that variable is set and the defined location exists and is writable nothing is done.
If the system default cache location exists and is writable a sub-folder app
is used (and created if necessary).
If the above don't work a new path is constructed from cache.dir
and the app
folder and an attempt is made to create that.
If all of the above fail the function attempts to create file.path(tempdir(), app)
. If tat fails, too,
an exception is thrown.
.setCacheLocation(cache.dir = rappdirs::user_cache_dir(), app = "biomaRt")
cache.dir |
( |
app |
( |
The value of the BIOMART_CACHE environment variable, i.e., the cache location.
user_cache_dir
, BiocFileCache
## Not run: .setCacheLocation()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.