powered by
This function is vectorised on pkgs so you can install multiple packages in a single command.
pkgs
install_cran(pkgs, repos = getOption("repos"), type = getOption("pkgType"), ..., quiet = FALSE)
Character vector of packages to install.
A character vector giving repositories to use.
Type of package to update. If "both", will switch automatically to "binary" to avoid interactive prompts during package installation.
update
Additional arguments passed to install_packages.
install_packages
If TRUE, suppress output.
TRUE
Other package installation: install_bioc, install_bitbucket, install_github, install_git, install_svn, install_url, install_version, install, uninstall
install_bioc
install_bitbucket
install_github
install_git
install_svn
install_url
install_version
install
uninstall
# NOT RUN { install_cran("ggplot2") install_cran(c("httpuv", "shiny") # }
Run the code above in your browser using DataLab