checkReqPkg: Check for installed package

Description Usage Arguments Value Author(s)

View source: R/internals.R

Description

Returns error if a required package is not installed. Mostly used for checking whether packages listed under the Suggests field in the DESCRIPTION file is installed.

Usage

1
checkReqPkg(pkg, msg = "")

Arguments

pkg

The package to check for, a character of length 1.

msg

Optionally additional text appended (with paste0) to the default error message.

Value

Returns error and message if not installed, otherwise invisible(TRUE)

Author(s)

Kasper Skytte Andersen ksa@bio.aau.dk


KasperSkytte/mmgenome2 documentation built on Dec. 14, 2021, 12:11 a.m.