download: Download Documents

Description Usage Arguments Value Examples

View source: R/download.R

Description

This function enables downloading documents.

Usage

1
download(url, loc = tempdir(), file.out = NULL)

Arguments

url

The download url(s).

loc

Where to put the files.

file.out

Option vector of names matching url. If this is not given download will try to create a name from url.

Value

Places a copy of the downloaded document in location specified and returns vector of the locations as string paths.

Examples

1
2
3
4
5
6
7
8
9
## 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

## End(Not run)

textreadr documentation built on Sept. 28, 2018, 5:09 p.m.