Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WISH: environmentName(new.env()) to return the address and not just an empty string #39

Open
HenrikBengtsson opened this issue Mar 9, 2017 · 0 comments

Comments

@HenrikBengtsson
Copy link
Owner

We have

> environmentName(globalenv())
[1] "R_GlobalEnv"

> environmentName(baseenv())
[1] "base"

> environmentName(getNamespace("tools"))
[1] "tools"

but for

> env <- new.env()
> print(env)
<environment: 0x2c31298>

we get:

> environmentName(env)
[1] ""

It would be useful if the latter returned the environment address instead, i.e.

> environmentName(env)
[1] "0x2c31298"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant