Skip to content
Prev 2272 / 12125 Next

[R-pkg-devel] Assignments to the Global environment

You probably need to tell us what you are trying to achieve. Why do you want to assign temp3 to a variable with its name in s into the global environment? Not doing that would clearly eliminate the Note:, but presumably it has a function. However, writing to the global environment, especially to variables with arbitrary names, is potentially antisocial behaviour, since it may overwrite user variables.

Incidentally, why do you write .GlobalEnv as as.environment(1)? Is is as intended?

-pd