sig (version 0.0-6)

pkg2env: Get environment of a package.

Description

Utility function to get the environment of a package on the search path.

Usage

pkg2env(pkg)

pkg2env_(pkg)

Arguments

pkg

A package.

Value

the environment corresponding to pkg.

See Also

list2env

Examples

Run this code
# NOT RUN {
# Non-standard evaluation version
pkg2env(graphics)

# Standard evaluations versions
pkg2env_("tools")
pkg2env_(~ utils)
pkg2env_(quote(stats))
# }

Run the code above in your browser using DataLab