curlProgress | R Documentation |
Download a binary file from remote to local, with progress monitor
curlProgress(url, fname, mode = "wb", width_fx = 0.8)
url |
A remote URL |
fname |
The local destination, including the file name and extension |
mode |
Mode, as in RCurl::CFILE. Read, Write; Text, Binary. Defaults to 'wb' (write binary) |
width_fx |
(Optional) The console output message width; defaults to |
This is unabashedly taken from https://stackoverflow.com/a/21961094, and all credit is due. Minor additional input checks.
The requested asset
ftp_getBinPars
for creating FTP parameters to pass to this function.
## Not run: # ftp example curlProgress( url = "ftp://user:pwd@.xyz.com/dir/myfile.zip", fname = "./local_dir/myfile.zip" ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.