R/utils.R
pkg_found.Rd
Check if an R package is installed.
pkg_found(p)
(character(1)) Package name.
character(1)
TRUE if the package is installed, FALSE otherwise.
TRUE
FALSE
pkg_found("base") #> [1] TRUE pkg_found("somefakepackagename") #> [1] FALSE