Skip to contents

Is a package installed?

Usage

package_installed(pkg)

Arguments

pkg

Package name.

Value

Boolean. True if package is installed, false if not.

Examples

org::package_installed("data.table")
#> [1] TRUE