is_installed

0th

Percentile

Is a package installed in the library?

This checks that a package is installed with minimal side effects. If installed, the package will be loaded but not attached.

Usage
is_installed(pkg)
Arguments
pkg

The name of a package.

Value

TRUE if the package is installed, FALSE otherwise.

Aliases
  • is_installed
Examples
# NOT RUN {
is_installed("utils")
is_installed("ggplot5")
# }
Documentation reproduced from package rlang, version 0.1.6, License: GPL-3

Community examples

Looks like there are no examples yet.