download.lib: Downloading source and PDF version of R packages

View source: R/download.lib.r

download.libR Documentation

Downloading source and PDF version of R packages

Description

This function can download three documents for each package: zip version, source version (tar.gz), and PDF manual.

Usage

download.lib(pkgs, destdir = tempdir(), mode = "wb", 
  pdf.url = "http://cran.r-project.org/web/packages/", 
  f.zip = TRUE, f.pdf = TRUE)

Arguments

pkgs

A character vector for the names of one or multiple packages

destdir

The directory where documents are saved (e.g., C:/myFile; the default directory is the current working directory.

mode

The argument for download.file; the default is 'wb' for PDF version.

pdf.url

The url for PDF documents online.

f.zip

A logical value indicating whether a zip version is downloaded; by default, a zip version is downloaded by download.packages

f.pdf

A logical value indicating whether a PDF mannual for a package should be downloaded from the internet.

Details

This function is mainly used to download the source version of one or multiple packages. A zip version and a PDF manual can also be downloaded at the same time.

Value

Return the packge names.

Author(s)

Changyou Sun (edwinsun258@gmail.com)

See Also

download.packages; download.file.

Examples



  download.lib(pkgs = 'erer', destdir = tempdir(), 
    f.zip = FALSE, f.pdf = TRUE)


erer documentation built on Sept. 26, 2024, 5:06 p.m.