Check the existence of a package

PackageCheck(..., error = TRUE)

Arguments

...

Package names

error

If true, throw an error if the package doesn't exist

Value

Invisibly returns boolean denoting if the package is installed

Lifecycle

[Deprecated]

PackageCheck was deprecated in version 5.0.0; please use rlang::check_installed() instead

Examples

PackageCheck("SeuratObject", error = FALSE)
#> Warning: `PackageCheck()` was deprecated in SeuratObject 5.0.0.
#>  Please use `rlang::check_installed()` instead.