dev_meta: Return devtools metadata environment

Description Usage Arguments Examples

View source: R/dev-meta.r

Description

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

Usage

1

Arguments

name

The name of a loaded package

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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")
}

r-lib/pkgload documentation built on Nov. 4, 2018, 8:41 p.m.