R/helpers.R
dot-requireNamespace.Rd
This provides a standard message format for missing packages, e.g.,
detected via requireNamespace
.
.requireNamespace( pkg = "methods", minVersion = NULL, stopOnFALSE = FALSE, messageStart = paste0(pkg, if (!is.null(minVersion)) paste0("(>=", minVersion, ")"), " is required. Try: ") )
pkg | Character string indicating name of package required |
---|---|
minVersion | Character string indicating minimum version of package that is needed |
stopOnFALSE | Logical. If |
messageStart | A character string with a prefix of message to provide |