Learn R Programming

devtools (version 1.13.3)

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(devtest("testLoadHooks"))

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

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

Run the code above in your browser using DataLab