Skip to contents

Check if a package is installed and display an informative message.

Usage

check_pkg_installed(pkg, msg = "", verbose = TRUE)

check_qs_installed(verbose = TRUE)

check_future_installed(verbose = TRUE)

check_clustermq_installed(verbose = TRUE)

check_future.callr_installed(verbose = TRUE)

check_sc3_version(verbose = TRUE)

check_scdrake_packages(verbose = TRUE)

Arguments

pkg

A character scalar: name of package.

msg

A character scalar: additional message to be displayed.

verbose

A logical scalar: if TRUE, be verbose.

Value

TRUE if package is installed, FALSE otherwise.

check_scdrake_packages() returns TRUE if all tested packages are installed and {SC3} is installed from <github.com/gorgitko/SC3>, FALSE otherwise.

Examples

check_pkg_installed("utils")
#> [1] TRUE
check_pkg_installed("zzz")
#> ! Package zzz is not installed. 
#>  Please, consider its installation with
#> `BiocManager::install("zzz")`
#> [1] FALSE
check_qs_installed()
#> [1] TRUE