check_namespace: Namespace checks

View source: R/check_namespace.R

check_namespaceR Documentation

Namespace checks

Description

Importing too many packages can cause bugs due to namespace clashes. This check enforces a set number of imports. As a rule of thumb, if you only use a few functions from a package, use importFrom instead of import in your NAMESPACE file.

Usage

check_namespace(no_imports = NULL, path = ".")

Arguments

no_imports

Default NULL. Number of package imports via import() allowed in the NAMESPACE. If NULL, checks for environment variable NO_IMPORTS, otherwise 0.

path

Location of the package


jumpingrivers/inteRgrate documentation built on May 20, 2022, 11:08 p.m.