downloadFiles: Download files to a given directory

View source: R/data_firebrowse.R

downloadFilesR Documentation

Download files to a given directory

Description

Download files to a given directory

Usage

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

## 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)

nuno-agostinho/psichomics documentation built on Feb. 11, 2024, 11:16 p.m.