"downloadFile"(url, filename=basename(url), path=NULL, skip=TRUE, overwrite=!skip, ..., username=NULL, password=NULL, binary=TRUE, dropEmpty=TRUE, verbose=FALSE)
character
string specifying the URL to be downloaded.character
strings specifying the
local filename and the path of the downloaded file.TRUE
, an already downloaded file is skipped.TRUE
, an already downloaded file is overwritten,
otherwise an error is thrown.download.file
.character
strings specifying the username
and password for authenticated downloads. The alternative is to
specify these via the URL.TRUE
, the file is downloaded exactly "as is", that is,
byte by byte (recommended).NULL
if no file was downloaded.
username
and password
are only used
for downloads via URL protocol 'https'. The 'https' protocol requires
that either of 'curl' or 'wget' are available on the system.
download.file
is used.
That function may generate an empty file if the URL is not available.