Displaying 1 result from an estimated 1 matches for "newblips".
Did you mean:
newbies
2002 May 03
1
Behaviour of environment(foo)<- (PR#1509)
Hi Everyone,
I've noticed that setting the environment of a function from a package
actually creates a copy of that function in .GlobalEnv and sets the
environment on this copy:
> find(.profile)
[1] "package:newblips"
> environment(.profile) <- bb1$getEnv() # this is an environment
> find(.profile)
[1] ".GlobalEnv" "package:newblips"
I don't have a problem with this behaviour (now I understand it!) but
I think that it would help to document it in the help file. May...