Require package namespaces
Details
This function intentionally does not attach packages, unlike library
,
require
, or attachNamespace
functions.
Intended for use inside package functions that relying upon optional
dependencies defined via Suggests
instead of Imports
or Depends
in
DESCRIPTION
file.
Unlike requireNamespace
, this variant always errors on namespace failure.
Examples
requireNamespaces(c("base", "utils"))