powered by
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)
Return the packge names.
A character vector for the names of one or multiple packages
The directory where documents are saved (e.g., C:/myFile; the default directory is the current working directory.
The argument for download.file; the default is 'wb' for PDF version.
download.file
The url for PDF documents online.
A logical value indicating whether a zip version is downloaded; by default, a zip version is downloaded by download.packages
download.packages
A logical value indicating whether a PDF mannual for a package should be downloaded from the internet.
Changyou Sun (edwinsun258@gmail.com)
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.
download.packages; download.file.
# \donttest{ download.lib(pkgs = 'erer', destdir = tempdir(), f.zip = FALSE, f.pdf = TRUE) # }
Run the code above in your browser using DataLab