Description Usage Arguments Value Examples
The cache directory stores previously downloaded files to access them
more quickly. The cache directory stores files in the same format as a
an argo_mirror()
. By default, the cache is stored in a temporary
directory that is cleared when the session is restarted. This ensures
access to the latest index and files by default.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | argo_cache_dir()
argo_update_global(max_global_cache_age = -Inf, all = TRUE, quiet = FALSE)
argo_update_data(max_data_cache_age = -Inf, quiet = FALSE)
argo_set_cache_dir(cache_dir)
with_argo_cache_dir(cache_dir, expr)
with_argo_example_cache(expr)
argo_cached(path)
argo_test_mirror()
|
max_global_cache_age |
The maximum age in hours
to keep cached files. Use |
all |
Should index files be downloaded even if they have not been previously downloaded? |
quiet |
Use |
max_data_cache_age |
The maximum age in hours
to keep cached files. Use |
cache_dir |
A writable directory in which downloaded files can be cached. |
expr |
An expression to be evaluated with the specified
default |
path |
A path relative to the root directory of
|
argo_cache_dir()
: The directory where cache files are located
argo_set_cache_dir()
: The previously set cache directory
with_argo_cache_dir()
, with_argo_example_cache()
: The result of
expr
.
argo_cached()
: The file path to the cached version of the Argo file
(which may or may not exist).
argo_update_data()
, argo_update_global()
: The locations of the
updated files.
1 2 3 4 5 | argo_cache_dir()
temp_dir <- tempfile()
with_argo_cache_dir(temp_dir, argo_cache_dir())
unlink(temp_dir, recursive = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.