check_environment {envnames} | R Documentation |
Check whether a string corresponds to the name of an environment
Description
The input string is checked as a valid environment name. The environment can be a named environment (system or package) or a user environment.
Usage
check_environment(x, envir)
Arguments
x |
string to evaluate that may represent an environment |
envir |
environment where |
Value
A list with two elements:
found
whether the string contained inx
is the name of an existing environment in the workspaceenv_name
the name of the environment (after stripping out any system environments such as globalenv(), baseenv() or a package environment) (for instance "globalenv()$env$env1" is returned as "env$env1"), or NULL if no environment was found corresponding to the name given inx
.
[Package envnames version 0.4.1 Index]