download.lib | R Documentation |
This function can download three documents for each package: zip version, source version (tar.gz), and PDF manual.
download.lib(pkgs, destdir = tempdir(), mode = "wb",
pdf.url = "http://cran.r-project.org/web/packages/",
f.zip = TRUE, f.pdf = TRUE)
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. |
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.
Return the packge names.
Changyou Sun (edwinsun258@gmail.com)
download.packages
; download.file
.
download.lib(pkgs = 'erer', destdir = tempdir(),
f.zip = FALSE, f.pdf = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.