pkgload (version 1.0.2)

dev_meta: Return devtools metadata environment

Description

If the package was not loaded with devtools, returns NULL.

Usage

dev_meta(name)

Arguments

name

The name of a loaded package

Examples

Run this code
# NOT RUN {
dev_meta("stats") # NULL

if (has_tests()) {
# Load the test package in directory "testLoadHooks"
load_all(pkgtest("testLoadHooks"))

# Get metdata for the package
x <- dev_meta("testLoadHooks")
as.list(x)

# Clean up.
unload("testLoadHooks")
}
# }

Run the code above in your browser using DataCamp Workspace