powered by
This function enables downloading documents by wrapping curl::curl_download().
curl::curl_download()
download(url, loc = tempdir(), file.out = NULL, ...)
The download url(s).
Where to put the files.
Option vector of names matching url. If this is not given download() will try to create a name from url.
url
download()
Other arguments passed to curl::curl_download().
Places a copy of the downloaded document in location specified and returns vector of the locations as string paths.
# NOT RUN { m <- download( c('https://cran.r-project.org/web/packages/curl/curl.pdf', "https://github.com/trinker/textreadr/raw/master/inst/docs/rl10075oralhistoryst002.pdf"), ) m # }
Run the code above in your browser using DataLab