Skip to contents

Check if an R package is installed.

Usage

pkg_found(p)

Arguments

p

(character(1))
Package name.

Value

TRUE if the package is installed, FALSE otherwise.

Examples

pkg_found("base")
#> [1] TRUE
pkg_found("somefakepackagename")
#> [1] FALSE