Learn R Programming

HelpersMG (version 5.1)

wget: Download a file from internet and save it locally

Description

Download a file from internet and save it locally. This function is a wrapper for download.files() that keep the name identical and can get several files at once. It was written to simplify downloading of file. It doest not use the true wget function (https://www.gnu.org/software/wget/) which is much more complex but also powerful.

Usage

wget(url = stop("At least one internet adress is required"), ...)

Arguments

url

The url where to download file

...

The parameters send to download.file()

Value

Nothing

Details

wget download a file from internet and save it locally

Examples

Run this code
# NOT RUN {
library(HelpersMG)
# Save locally the files send in the parameter url
wget(c("https://cran.r-project.org/web/packages/HelpersMG/HelpersMG.pdf", 
         "https://cran.r-project.org/web/packages/embryogrowth/embryogrowth.pdf"))
# }

Run the code above in your browser using DataLab