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.

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