load_internal_functions {cleanr}R Documentation

Load a Package's Internals

Description

Load objects not exported from a package's namespace.

Usage

load_internal_functions(package, ...)

Arguments

package

[character(1)]
The name of the package as a string.

...

Arguments passed to ls, all.names = TRUE could be a good idea.

Details

The files to be checked get sourced, which means they have to contain R code producing no errors. If we want to check the source code of a package, we need to load the package and be able to run all its internals in our environment.

Value

invisible(TRUE)

See Also

checkUsageEnv in codetools.

Examples

load_internal_functions("cleanr")

[Package cleanr version 1.2.0 Index]