Use this function to fetch a number of remote URLs to local files.
In case of unreliable source servers, failed downlaods are retried up to
the number of times specified with stubbornness
. A path to an aria2c
executable can be specified to use it instead of the default R download
function.
Usage
download_or_skip(
urls = NULL,
filenames = NULL,
verbose = mapme_options()[["verbose"]],
stubbornness = 6,
check_existence = TRUE,
aria_bin = mapme_options()[["aria_bin"]]
)
Arguments
- urls
A character vector with URLs to be downloaded.
- filenames
A character vector with local file paths the same length as
urls
- verbose
A logical controlling the verbosity.
- stubbornness
A numeric indicating the number of retries for failed downloads.
- check_existence
A logical indicating if
urls
are to be checked before trying to download. Defaults to TRUE.- aria_bin
A character vector pointing towards an aria2c executable.