Track User-Defined Environment Names

Set of functions to keep track and find objects in user-defined environments by identifying environments by name --which cannot be retrieved with the built-in function environmentName(). The package also provides functionality to obtain simplified information about function calling chains and to get an object's memory address.


envnames

R package to retrieve the name of user-defined environments and of function execution environments.

Description

The main goal of this package is to overcome the limitation of the built-in environmentName() function from the base package which does not return the name of an environment unless it is a package, a namespace or a system environment (e.g. the global environment, the base environment, the empty environment).

The envnames package solves this problem by creating a lookup table that maps environment names to their memory addresses. Using this lookup table, it is possible to retrieve the name of any environment where an object resides, be it a package, namespace, system environment, user-defined environment, or function execution environment.

See the following post as motivation for creating this package: https://stat.ethz.ch/pipermail/r-help/2010-July/245646.html

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("envnames")

0.4.2 by Daniel Mastropietro, a month ago


https://github.com/mastropi/envnames


Report a bug at https://github.com/mastropi/envnames/issues


Browse source code at https://github.com/cran/envnames


Authors: Daniel Mastropietro [aut, cre]


Documentation:   PDF Manual  


GPL license


Suggests knitr, rmarkdown, testthat


Imported by envsetup.


See at CRAN