install.packages.ifmissing: Install Packages (If Missing)

Description Usage Arguments Details See Also Examples

Description

Installs packages that have not already been installed.

Usage

1

Arguments

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 .libPaths().

...

Additional arguments to be passed to install.packages.

Details

Installs packages that have not already been installed.

Packages are not updated with the latest version if an older version has been installed.

See Also

installed.packages which is used to determine which packages have already been installed.

install.packages which is used to install packages.

Examples

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"))

erikjandevries/r.dstools.ej documentation built on May 24, 2019, 4:02 a.m.