Closed dbosak01 closed 3 years ago
Set environment to parent.frame() on call to libname function. Seems to be resetting the environment for different environments: global or within a function. Much better than previous method. Previously, it was always going to the global environment, so that if you wanted to set a data frame with
Withing a function, libr should use the environment of the function, and not the global environment. That means each call to libname has to capture the parent environment, and use that on all subsequent calls. Will have to track the scope for each libname.