install_cran

0th

Percentile

Attempts to install a package from CRAN.

This function is vectorised on pkgs so you can install multiple packages in a single command.

Usage
install_cran(pkgs, repos = getOption("repos"), type = getOption("pkgType"),
  ..., quiet = FALSE)
Arguments
pkgs

Character vector of packages to install.

repos

A character vector giving repositories to use.

type

Type of package to update. If "both", will switch automatically to "binary" to avoid interactive prompts during package installation.

...

Additional arguments passed to install_packages.

quiet

If TRUE, suppress output.

See Also

Other package installation: install_bioc, install_bitbucket, install_github, install_git, install_svn, install_url, install_version, install, uninstall

Aliases
  • install_cran
Examples
# NOT RUN {
install_cran("ggplot2")
install_cran(c("httpuv", "shiny")
# }
Documentation reproduced from package devtools, version 1.13.3, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.