powered by
Gets the name of an environment, e.g. "R_GlobalEnv" or "0x01ddd060".
"R_GlobalEnv"
"0x01ddd060"
# S3 method for environment getName(env, ...)
Returns a character string.
character
An environment.
environment
Not used.
Henrik Bengtsson
environmentName().
environmentName()
name <- getName(globalenv()) print(name) stopifnot(identical(name, "R_GlobalEnv")) getName(new.env())
Run the code above in your browser using DataLab