View source: R/cache_download.R
cache_download | R Documentation |
By default, all downloads are cached both on the disk and in your computer memory. This means that the second time you download a file during the same session it will be reloaded from your ram. If you stop a session and restart it, the file will be loaded from your disk. If you want to reload the data from its original source, use the bust_cache function.
cache_download( url, ..., use_memory = TRUE, use_disk = TRUE, bust_cache = FALSE )
url |
The URL to download from. |
... |
arguments to forward to the vroom::vroom function. |
use_memory |
Whether to use memory caching. |
use_disk |
Whether to use disk caching. |
bust_cache |
Whether to bust (refresh) the cache. |
Additionally, options can be used to determine the default caching behavior of tidyiddr.
cache_download("https://s3.amazonaws.com/quartzdata/datasets/caserates-by-age.csv") options("tidyiddr_use_cache" = TRUE) cache_download("https://s3.amazonaws.com/quartzdata/datasets/caserates-by-age.csv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.