downloadFiles: Download files to a given directory

Description Usage Arguments Value Examples

View source: R/data_firebrowse.R

Description

Download files to a given directory

Usage

1
downloadFiles(url, folder, download = download.file, ...)

Arguments

url

Character: download links

folder

Character: directory to store the downloaded archives

download

Function to use to download files

...

Extra parameters passed to the download function

Value

Invisible TRUE if every file was successfully downloaded

Examples

1
2
3
4
5
6
7
8
## Not run: 
url <- paste0("https://unsplash.it/400/300/?image=", 570:572)
psichomics:::downloadFiles(url, "~/Pictures")

# Download without printing to console
psichomics:::downloadFiles(url, "~/Pictures", quiet = TRUE)

## End(Not run)

psichomics documentation built on Nov. 8, 2020, 5:44 p.m.