If I run the following code in R, R will not be responsive after the last command. Does anybody know what causes the problem and how to set the parent environment of an environment? (BTW, I am aware of the difference between parent.frame
and parent.env
What is the difference between parent.frame() and parent.env() in R; how do they differ in call by reference?)
e1=environment()
e2=environment()
parent.env(e1)=e2
parent.env(e1)