Learn R Programming

envnames (version 0.4.1)

get_environment_name: Get the name of an environment when the address-name lookup table has not yet been constructed

Description

Get the name of an environment when the address-name lookup table has not yet been constructed

Usage

get_environment_name(env)

Arguments

env

environment whose name is of interest

Value

the name of the environment as given by environmentName() if it is a named environment or the name of the environment as given by deparse(substitute()) otherwise. This will result in a string representing an expression when 'env' is given as an expression as in parent.env(env1).