forked from Al-Murphy/MungeSumstats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
downloader.Rd
68 lines (57 loc) · 1.46 KB
/
downloader.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/downloader.R
\name{downloader}
\alias{downloader}
\title{downloader wrapper}
\source{
\href{https://stackoverflow.com/a/66602496/13214824}{
Suggestion to avoid 'proc$get_built_file() : Build process failed'}
}
\usage{
downloader(
input_url,
output_path,
download_method = "axel",
background = FALSE,
force_overwrite = FALSE,
quiet = TRUE,
show_progress = TRUE,
continue = TRUE,
nThread = 1,
alternate = TRUE,
check_certificates = TRUE,
timeout = 10 * 60
)
}
\arguments{
\item{input_url}{input_url.}
\item{output_path}{output_path.}
\item{download_method}{\code{"axel"} (multi-threaded) or
\code{"download.file"} (single-threaded) .}
\item{background}{Run in background}
\item{force_overwrite}{Overwrite existing file.}
\item{quiet}{Run quietly.}
\item{show_progress}{show_progress.}
\item{continue}{continue.}
\item{nThread}{Number of threads to parallelize over.}
\item{alternate}{alternate,}
\item{check_certificates}{check_certificates}
\item{timeout}{How many seconds before giving up on download.
Passed to \code{download.file}. Default: \code{10*60} (10min).}
}
\value{
Local path to downloaded file.
}
\description{
R wrapper for
\href{https://github.com/axel-download-accelerator/axel}{axel}
(multi-threaded) and
\link[utils]{download.file} (single-threaded)
download functions.
}
\seealso{
Other downloaders:
\code{\link{axel}()}
}
\concept{downloaders}
\keyword{internal}