This function makes it easy to implement timestamping and no-clobber of files.
download_data(
url,
destdir = getwd(),
timestamping = TRUE,
nc = FALSE,
verbose = FALSE,
progress = FALSE
)
A character string of the file path to the downloaded file.
The location of a file.
Where the file should be downloaded to.
Should only newer files be downloaded?
Should files of the same type not be clobbered?
Should cURL output be shown?
Should a progress bar be shown with cURL output?
If both timestamping
and nc
are TRUE, nc behavior trumps timestamping.