Learn R Programming

R.oo (version 1.26.0)

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 environment
getName(env, ...)

Value

Returns a character string.

Arguments

env

An environment.

...

Not used.

Author

Henrik Bengtsson

See Also

Examples

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

  getName(new.env())

Run the code above in your browser using DataLab