dev_meta {pkgload}R 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

Run examples

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")
}

[Package pkgload version 1.2.4 Index]