Description Usage Arguments Details See Also Examples
Installs packages that have not already been installed.
1 | install.packages.ifmissing(pkgs, lib = .libPaths(), ...)
|
pkgs |
A character vector of the names of packages which should be installed if they are not installed already. |
lib |
A character vector giving the library directories where to look for and install the packages. If missing, defaults to the first element of |
... |
Additional arguments to be passed to |
Installs packages that have not already been installed.
Packages are not updated with the latest version if an older version has been installed.
installed.packages
which is used to determine which packages have already been installed.
install.packages
which is used to install packages.
1 2 3 4 5 6 | # Installs the dplyr package:
install.packages.ifmissing("dplyr")
# Installs the ggplot2 package, but
# will not reinstall the dplyr package.
install.packages.ifmissing(c("dplyr", "ggplot2"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.