Skip to content
Prev 7353 / 63424 Next

Behaviour of environment(foo)<- (PR#1509)

Peter Dalgaard BSA wrote:
I understand.  However, I still think that the help page for environment
is wrong!  Using "enviroment<-" does not necessarily set the environment
of the function, as stated.  What happened to me is that I modified
.profile in the package newblips and then re-assigned its environment
but didn't see any change, because it was masked by the copy of .profile
in .GlobalEnv that I didn't know I had.  That's quite a subtle outcome
and I think that changing the environment help page would clarify this
for other users.  J.