downloader | R Documentation |
R wrapper for "axel"
(multi-threaded) and
"download.file"
(single-threaded) download functions.
downloader(
input_url,
output_dir = tempdir(),
output_path = file.path(output_dir, basename(input_url)),
download_method = c("axel", "wget", "download.file", "internal", "wininet", "libcurl",
"curl"),
retry_method = "download.file",
background = FALSE,
force_overwrite = FALSE,
quiet = TRUE,
show_progress = TRUE,
continue = TRUE,
alternate = TRUE,
check_certificates = TRUE,
timeout = 5 * 60,
conda_env = "echoR_mini",
nThread = 1,
verbose = TRUE
)
input_url |
URL to remote file. |
output_dir |
The file directory you want to save the download in. |
output_path |
The file name you want to save the download as. |
download_method |
|
retry_method |
Method to automatically
retry with when the selected |
background |
Run in background |
force_overwrite |
Overwrite existing file. |
quiet |
Run quietly. |
show_progress |
show_progress. |
continue |
continue. |
alternate |
alternate, |
check_certificates |
check_certificates |
timeout |
How many seconds before giving up on download.
Passed to |
conda_env |
Conda environment to use. |
nThread |
Number of threads to parallelize over. |
verbose |
Print messages. |
Local path to downloaded file.
Named vector of files, where the names are the URLs and the values are the paths to the respective local files.
Other downloaders:
aws()
,
axel()
,
wget()
input_url <- paste(
"https://github.com/RajLabMSSM/Fine_Mapping",
"raw/master/Data/lead.SNP.coords.csv", sep="/")
output_paths <- downloadR::downloader(input_url = input_url)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.