R wrapper for "axel"
(multi-threaded) and
"download.file"
(single-threaded) download functions.
downloader( input_url, output_path = file.path(tempdir(), basename(input_url)), download_method = c("axel", "wget", "download.file", "internal", "wininet", "libcurl", "wget", "curl"), background = FALSE, force_overwrite = FALSE, quiet = TRUE, show_progress = TRUE, continue = TRUE, nThread = parallel::detectCores() - 1, alternate = TRUE, check_certificates = TRUE, timeout = 30 * 60, conda_env = "echoR" )
input_url | URL to remote file. |
---|---|
output_path | The file name you want to save the download as. |
download_method |
or
|
background | Run in background |
force_overwrite | Overwrite existing file. |
quiet | Run quietly. |
show_progress | show_progress. |
continue | continue. |
nThread | Number of threads to parallelize over. |
alternate | alternate, |
check_certificates | check_certificates |
timeout | How many seconds before giving up on download.
Passed to |
conda_env | Conda environment to use. |
Local path to downloaded file.
rda_url<-"https://github.com/RajLabMSSM/echolocatoR/raw/master/data/BST1.rda" out_path <- downloadR::downloader( input_url = rda_url, download_method = "axel" )#>#>#>