download.lib {erer} | R 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 = getwd(), 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 |
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 |
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 (cs258@msstate.edu)
See Also
download.packages
; download.file
.
Examples
## Not run:
download.lib(pkgs = 'erer', destdir = 'c:/aErer/Rcode',
f.zip = FALSE, f.pdf = TRUE)
## End(Not run)