
Last chance! 50% off unlimited learning
Sale ends in
This function is vectorised on pkgs
so you can install multiple
packages in a single command.
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.
Additional arguments passed to install_packages
.
If TRUE
, suppress output.
Other package installation: 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