Description Usage Arguments Details Value
Parse and evaluate code from a package, and store it in an environment, so that we can access it later without parsing it again.
1 | extract_api(path = ".", targets = character())
|
path |
package root |
targets |
character vector, function call targets to find |
We need to evaluate code to get the functions, which might require
loading some packages, so we perform all this in a separate R process,
using the callr
package.
While we are at it, we also check the imports of the package, and return where each function was imported from.
Named list with components:
name
is the package name.
version
is the vesion of the package.
targets
is a character vector, the names of the environments where
each target was found.
functions
is a list of functions, with source references.
exports
is a character vector of exported objects.
s3_methods
is a character vector of declared S3 methods.
imports
is a named list of environment names, one for each import.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.