descriptionHints: Check NAMESPACE and DESCRIPTION files for requirements

Description Usage Arguments Details Value Note Author(s)

Description

The function compares the imports and dynamic library requirements from the package's NAMESPACE file with the directives in the DESCRIPTION file, and prints a suggestion if some requirements seem to be missing.

Usage

1

Arguments

package

The quoted file path to the source package's directory. Files "DESCRIPTION" and "NAMESPACE" should exist in this directory.

Details

The "NAMESPACE" file is parsed and the various import and dynamic library requirements are processed to give a list of the apparently needed packages. This list is compared to the "Depends" and "Imports" directives in the "DESCRIPTION" file. If some dependencies are missing, the function prints a message with a suggested line for the "DESCRIPTION" file.

Value

Returns invisibly the suggested dependencies, if these were not provided.

Note

In addition to the dependencies noted here, the current version of R (2.14.0) requires "Depends: methods" for the check utility if the package uses formal methods and classes.

Author(s)

John M. Chambers


johnmchambers/XRtools documentation built on May 19, 2019, 5:16 p.m.