Update packages that are missing or out-of-date.
Works similarly to
install.packages() but doesn't install packages
that are already installed, and also upgrades out dated dependencies.
update_packages(pkgs, dependencies = NA, repos = getOption("repos"), type = getOption("pkgType"))
- Character vector of packages to update.
- Which dependencies do you want to check?
Can be a character vector (selecting from "Depends", "Imports",
"LinkingTo", "Suggests", or "Enhances"), or a logical vector.
TRUEis shorthand for "Depends", "Imports", "LinkingTo" and "Sugg
- 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.
package_deps to see which packages are out of date/
update_packages("ggplot2") update_packages(c("plyr", "ggplot2"))