downloadFile( archive, targetFile, neededFiles, destinationPath = getOption("reproducible.destinationPath"), quick, checksumFile, dlFun = NULL, checkSums, url, needChecksums, overwrite = getOption("reproducible.overwrite", TRUE), verbose = getOption("reproducible.verbose", 1), purge = FALSE, .tempPath, ... )
Optional character string giving the path of an archive
Character string giving the 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
Character string giving the name of the file(s) to be extracted.
Character string of a directory in which to download
and save the file that comes from
Logical. This is passed internally to
A character string indicating the absolute path to the
Optional "download function" name, such as
A checksums file, e.g., created by Checksums(..., write = TRUE)
Optional character string indicating the URL to download from.
If not specified, then no download will be attempted. If not entry
exists in the
A numeric, with
Logical. Should downloading and all the other actions occur even if they pass the checksums or the files are all there.
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
Logical or Integer.
Optional temporary path for internal file intermediate steps. Will be cleared on.exit from this function.