View source: R/checkInstalled.R
checkInstalled | R Documentation |
checkInstalled
allows to check if a package is installed. If the package is
not available, a convenient copy-and-paste message is provided for package
installation with BiocManager
. The function is typically used within
functions that check for package availability from the Suggests
field.
checkInstalled(pkgs)
pkgs |
|
TRUE
if all packages are installed, otherwise stops with a message
and suggests installation of missing packages
M. Morgan, M. Ramos
if (interactive()) {
checkInstalled(
c("BiocParallel", "SummarizedExperiment")
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.