Functionally identical to devtools' as.package, but without interactive options for package creation.

as.package(x)

Arguments

x

A package object to coerce

Value

A package object

Note

Code inspired by devtools load_pkg_description with very minor edits to further reduce devtools dependencies.