Learn R Programming

reproducible (version 1.1.1)

dlGeneric: Download file from generic source url

Description

Download file from generic source url

Usage

dlGeneric(url, needChecksums, destinationPath)

Arguments

url

The url (link) to the file.

needChecksums

Logical indicating whether to generate checksums.

## TODO: add overwrite arg to the function?

destinationPath

Character string of a directory in which to download and save the file that comes from url and is also where the function will look for archive or targetFile. NOTE (still experimental): To prevent repeated downloads in different locations, the user can also set options("reproducible.inputPaths") to one or more local file paths to search for the file before attempting to download. Default for that option is NULL meaning do not search locally.