is_inst: Check if package is available

Description Usage Arguments Value Author(s) References Examples

View source: R/is_inst.R

Description

A predicate for whether a package is installed

Usage

1
is_inst(pkg)

Arguments

pkg

a character string with the name of a single package. An error occurs if more than one package name is given.

Value

TRUE if a package is installed, and FALSE otherwise.

Author(s)

Artem Klevtsov

References

https://stackoverflow.com/questions/9341635/check-for-installed-packages-before-running-install-packages/38082613#38082613

Examples

1
is_inst("grDevices")

nfultz/stackoverflow documentation built on Aug. 4, 2020, 5:31 a.m.