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

getName.environment

Gets the name of an environment


Description

Gets the name of an environment, e.g. "R_GlobalEnv" or "0x01ddd060".

Usage

## S3 method for class 'environment'
getName(env, ...)

Arguments

env

An environment.

...

Not used.

Value

Returns a character string.

Author(s)

Henrik Bengtsson

See Also

Examples

name <- getName(globalenv())
  print(name)
  stopifnot(identical(name, "R_GlobalEnv"))

  getName(new.env())

R.oo

R Object-Oriented Programming with or without References

v1.24.0
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

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