Learn R Programming

cleanr (version 1.1.3)

load_internal_functions: 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.

Value

invisible(TRUE)

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.

See Also

checkUsageEnv in codetools.

Examples

Run this code
load_internal_functions("cleanr")

Run the code above in your browser using DataLab