View source: R/requireNamespaces.R
requireNamespaces | R Documentation |
Require package namespaces
requireNamespaces(packages)
packages |
|
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.
Updated 2023-02-07.
requireNamespace
attachNamespace
loadNamespace
requireNamespaces(c("base", "utils"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.