This does downloading (via
downloadFile), checksumming (
and extracting from archives (
extractFromArchive), plus cleaning up of input
arguments (e.g., paths, function names).
This is the first stage of three used in
preProcessParams(n = NULL) preProcess( targetFile = NULL, url = NULL, archive = NULL, alsoExtract = NULL, destinationPath = getOption("reproducible.destinationPath", "."), fun = NULL, dlFun = NULL, quick = getOption("reproducible.quick"), overwrite = getOption("reproducible.overwrite", FALSE), purge = FALSE, useCache = getOption("reproducible.useCache", FALSE), verbose = getOption("reproducible.verbose", 1), .tempPath, ... )
Number of non-null arguments passed to
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
Optional character string indicating the URL to download from.
If not specified, then no download will be attempted. If not entry
exists in the
Optional character string giving the path of an archive
Optional character string naming files other than
Character string of a directory in which to download
and save the file that comes from
Function or character string indicating the function to use to load
Optional "download function" name, such as
Logical. This is passed internally to
Logical. Should downloading and all the other actions occur even if they pass the checksums or the files are all there.
Logical or Integer.
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
Optional temporary path for internal file intermediate steps. Will be cleared on.exit from this function.
Additional arguments passed to
A list with 5 elements:
checkSums (the result of a
dots (cleaned up
..., including deprecated argument checks),
fun (the function to be used to load the
preProcessed object from disk),
targetFilePath (the fully qualified path to the
preProcessParams() for a table describing various parameter combinations and their
* If the
url is a file on Google Drive, checksumming will work
even without a
targetFile specified because there is an initial attempt
to get the remove file information (e.g., file name). With that, the connection
url and the filename used in the
CHECKSUMS.txt file can be made.