What are the enclosing and parent environments?
Inside a function you may want to access variables in two additional environments: the one that the function was defined in (“enclosing”), and the one it was invoked in (“parent”) If you create a function at the command line or load it in a package its enclosing environment is the global workspace.
Inside a function you may want to access variables in two additional environments: the one that the function was defined in (“enclosing”), and the one it was invoked in (“parent”). If you create a function at the command line or load it in a package its enclosing environment is the global workspace.
Inside a function you may want to access variables in two additional environments: the one that the function was defined in (“enclosing”), and the one it was invoked in (“parent”). If you create a function at the command line or load it in a package its enclosing environment is the global workspace.