Re: [Rd] Access variable in attached but removed object

2014-05-09 Thread Rainer M Krug
Duncan Murdoch writes: > On 09/05/2014, 6:54 AM, Rainer M Krug wrote: >> >> How can I access an object in an attached but deleted environment, when >> the object also exists in the .GolbalEnv? > > Attaching a variable to the search list generally makes a copy of it, > so it can't be "attached but

Re: [Rd] Access variable in attached but removed object

2014-05-09 Thread Duncan Murdoch
On 09/05/2014, 6:54 AM, Rainer M Krug wrote: How can I access an object in an attached but deleted environment, when the object also exists in the .GolbalEnv? Attaching a variable to the search list generally makes a copy of it, so it can't be "attached but deleted". However, "making a copy"

[Rd] Access variable in attached but removed object

2014-05-09 Thread Rainer M Krug
How can I access an object in an attached but deleted environment, when the object also exists in the .GolbalEnv? I hope the example below makes the question clear: --8<---cut here---start->8--- tmp <- attach(what=NULL, name="org:variables") tmp$test = 13 rm(t