requireNamespaces: Require package namespaces

Description Usage Arguments Details Note See Also Examples

View source: R/requireNamespaces.R

Description

Require package namespaces

Usage

1

Arguments

packages

character. Package names to load.

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.

Note

Updated 2021-08-13.

See Also

Examples

1
requireNamespaces(c("base", "utils"))

acidgenomics/AcidBase documentation built on Sept. 10, 2021, 1:27 a.m.