devtools (version 0.8)

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
dev_meta("stats") # NULL

# Load the test package in directory "load-hooks"
load_all(devtest("load-hooks"))

# Get metdata for the package
# (The name of the package in DESCRIPTION is "loadhooks")
x <- dev_meta("loadhooks")
as.list(x)

# Clean up.
unload(devtest("load-hooks"))

Run the code above in your browser using DataCamp Workspace