download: Download a package file from an URL

Description Usage Arguments Author(s)

View source: R/download.R

Description

In case a raw data file is too big to be contained in a package, a solution consists in downloading that file after package installation when the file is needed for the first time. This is what the download function allows to do. It will downlaod the file from the provided URL and put it in the extdata directory of the provided package hierarchy, naming it using the name provided as an argument.

Usage

1
download(url, package, file)

Arguments

url

character string containing the URL to download from.

package

character string containing the name of the package into which to put the downloaded file.

file

character string containing the name of the downloaded file should be given.

Author(s)

Marc Choisy


choisy/mcdev documentation built on June 1, 2018, 8:10 a.m.