Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ns_env

Return the namespace environment for a package.


Description

Contains all (exported and non-exported) objects, and is a descendant of R_GlobalEnv. The hierarchy is <namespace:pkg>, <imports:pkg>, <namespace:base>, and then R_GlobalEnv.

Usage

ns_env(package)

Arguments

package

package name.

Details

If the package is not loaded, this function returns NULL.

See Also

pkg_env() for the attached environment that contains the exported objects.

imports_env() for the environment that contains imported objects for the package.


pkgload

Simulate Package Installation and Attach

v1.2.1
GPL-3
Authors
Hadley Wickham [aut], Jim Hester [aut, cre], Winston Chang [aut], RStudio [cph], R Core team [ctb] (Some namespace and vignette code extracted from base R)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.