resumableDownload | R Documentation |
A helper function that uses the curl
package's multi_download
to download a file using a temporary file to store progress and resume downloading on interruption.
resumableDownload( url, outFile = basename(url), tmpFile = sprintf("%s.__TMP__", outFile), quiet = FALSE, resume = TRUE, ... )
url |
The address to download from |
outFile |
The file location to store final download at |
tmpFile |
The file location to store the intermediate download at |
quiet |
If TRUE show the progress reported by |
resume |
If TRUE try to resume interrupted downloads using intermediate file |
... |
Additional arguments to |
invisibly return the output frmo multi_download
multi_download
## Not run: url<-'https://ftp.ncbi.nih.gov/pub/taxonomy/accession2taxid/prot.accession2taxid.FULL.1.gz' resumableDownload(url,'downloadedFile.gz') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.