Learn R Programming

envnames (version 0.4.1)

destandardize_env_name: De-standardize the name of an environment

Description

This function inverts the process performed by standardize_env_name that is, it converts the standardized names "R_GlobalEnv", "R_EmptyEnv", and "base" back to names that are recognized by R as actual environments when using function as.environment, namely to ".GlobalEnv", ".EmptyEnv", and "package:base".

Usage

destandardize_env_name(env_name)

Arguments

env_name

environment name to de-standardize.

Value

The name of the environment, where the global environment is represented as ".GlobalEnv", the empty environment as ".EmptyEnv", and the base environment as "package:base".