.cache_download | R Documentation |
This function copies a remote file to a local cache once and makes sure it is reused.
.cache_download(
url,
...,
.nocache = getOption("cache.disable", default = FALSE),
.cache = rappdirs::user_cache_dir(utils::packageName()),
.stale = Inf,
.extn = NULL
)
url |
the url to download |
... |
passed to 'utils::download.file()' |
.nocache |
if set to TRUE all caching is disabled |
.cache |
the location of the downloaded files |
.stale |
how long to leave this file before replacing it. |
.extn |
the file name extension |
the path to the downloaded file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.