Download File(s) from the Internet
download_file.Rd
download_file()
is a vectorized version of utils::download.file()
that
does not rely on specifying the "libcurl" method for vectorization.
Arguments
- url
A character vector naming the URL of resource(s) to be downloaded.
- dest_file
A character vector with the file path(s) where downloaded file(s) will be saved.
- on_failure
A string indicating how to handle download failure:
"warn" - produce a warning; includes exit codes for debugging
"abort" - abort execution
"list_failed" - list URLs that failed (output format differs, see
Value
)"warn-list_failed" - combination of "warn" and "list_failed"
"skip" - do nothing
- ...
Additional arguments passed on to
utils::download.file()
.