Check the existence of a package
PackageCheck(..., error = TRUE)
Package names
If true, throw an error if the package doesn't exist
Invisibly returns boolean denoting if the package is installed
PackageCheck("SeuratObject", error = FALSE)
#> Warning: `PackageCheck()` was deprecated in SeuratObject 5.0.0.
#> ℹ Please use `rlang::check_installed()` instead.