download.file.wcheck | R Documentation |
Wraps regular download.file
, but by default caches the the etag
in the file header and then compares this before downloading again.
download.file.wcheck( url, destdir = NULL, destfile = NULL, overwrite = NULL, mode = "wb", ... )
url |
Location of remote file to download |
destdir |
Path to local download directory |
destfile |
Full path to local downloaded file |
overwrite |
Whether to check etag ( |
mode |
See the |
... |
Additional arguments passed to |
The header will be cached in a file called
XXXX.http_header.rds
next to the downloaded file.
When the URL is unreachable, a check is made to see if the corresponding file already exists locally. If yes, then a warning is issued, but that path is used. If no, then the function will error out.
The header will be cached in a file called XXXX.http_header.rds next to the downloaded file
Path to downloaded (or cached) file.
download.file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.