dev_meta: Return devtools metadata environment

View source: R/dev-meta.R

dev_metaR Documentation

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

dev_meta("stats") # NULL

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

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

# Clean up.
unload("testLoadHooks")
}

pkgload documentation built on June 28, 2024, 5:07 p.m.