downloadWithRetries {argoFloats} | R Documentation |
Download and Cache a Dataset
Description
General function for downloading and caching a dataset.
Usage
downloadWithRetries(
url,
destdir,
destfile,
quiet = FALSE,
age = argoDefaultProfileAge(),
retries = 3,
async = FALSE,
debug = 0
)
Arguments
url |
character value giving the full URL of a file to be downloaded. |
destdir |
character value indicating the directory in which to store
downloaded files. The default value is to compute this using
|
destfile |
either character value indicating the name of the file
or |
quiet |
logical value; use |
age |
a numerical value indicating a time interval, in days. If the file
to be downloaded from the server already exists locally, and was created
is less than |
retries |
integer telling how many times to retry a download, if the first attempt fails. |
async |
Use |
debug |
integer value indicating level of debugging. If this
is less than 1, no debugging is done. Otherwise, some functions
will print debugging information. If a function call fails, the
first step should be to rerun the function with |
Value
A character value indicating the full pathname to the downloaded file,
or NA
, if there was a problem with the download.
Author(s)
Dan Kelley