View source: R/download-packages.R
download_packages | R Documentation |
Download Package from CRAN-like Repositories, with Caching
download_packages(pkgs, destdir, available = NULL,
repos = getOption("repos"), contriburl = contrib.url(repos, type),
method, type = getOption("pkgType"), ...)
pkgs |
character vector of the names of packages whose latest available versions should be downloaded from the repositories. |
destdir |
directory where downloaded packages are to be stored. |
available |
an object as returned by |
repos |
character vector, the base URL(s) of the repositories
to use, i.e., the URL of the CRAN master such as
|
contriburl |
URL(s) of the contrib sections of the
repositories. Use this argument only if your repository mirror is
incomplete, e.g., because you burned only the ‘contrib’ section on a
CD. Overrides argument |
method |
Download method, see |
type |
character string, indicate which type of packages: see
|
... |
additional arguments are passed to
|
Other caching package management functions: available_packages
,
install_packages
,
update_packages
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.