downloadRemote {reproducible} | R Documentation |
Download a remote file
Description
Download a remote file
Usage
downloadRemote(
url,
archive,
targetFile,
checkSums,
dlFun = NULL,
fileToDownload,
messSkipDownload,
destinationPath,
overwrite,
needChecksums,
.tempPath,
preDigest,
verbose = getOption("reproducible.verbose", 1),
...
)
Arguments
url |
Optional character string indicating the URL to download from.
If not specified, then no download will be attempted. If not entry
exists in the |
archive |
Optional character string giving the path of an archive
containing |
targetFile |
Character string giving the filename (without relative or
absolute path) to the eventual file
(raster, shapefile, csv, etc.) after downloading and extracting from a zip
or tar archive. This is the file before it is passed to
|
checkSums |
TODO |
dlFun |
Optional "download function" name, such as |
fileToDownload |
TODO |
messSkipDownload |
The character string text to pass to messaging if download skipped |
destinationPath |
Character string of a directory in which to download
and save the file that comes from |
overwrite |
Logical. Should downloading and all the other actions occur even if they pass the checksums or the files are all there. |
needChecksums |
Logical indicating whether to generate checksums. ## TODO: add overwrite arg to the function? |
.tempPath |
Optional temporary path for internal file intermediate steps. Will be cleared on.exit from this function. |
preDigest |
The list of |
verbose |
Numeric, -1 silent (where possible), 0 being very quiet,
1 showing more messaging, 2 being more messaging, etc.
Default is 1. Above 3 will output much more information about the internals of
Caching, which may help diagnose Caching challenges. Can set globally with an
option, e.g., |
... |
Additional arguments passed to
|