[R] Do environments make copies?

2005-02-24 Thread Nawaaz Ahmed
I am using environments to avoid making copies (by keeping references). But it seems like there is a hidden copy going on somewhere - for example in the code fragment below, I am creating a reference to y (of size 500MB) and storing the reference in object data. But when I save data and then

RE: [R] Do environments make copies?

2005-02-24 Thread Berton Gunter
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nawaaz Ahmed Sent: Thursday, February 24, 2005 10:36 AM To: r-help@stat.math.ethz.ch Subject: [R] Do environments make copies? I am using environments to avoid making copies (by keeping references). But it seems like there is a hidden copy going

RE: [R] Do environments make copies?

2005-02-24 Thread Luke Tierney
= .GlobalEnv)) in new.ref avoids the second copy both in the saved image and after loading. luke -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nawaaz Ahmed Sent: Thursday, February 24, 2005 10:36 AM To: r-help@stat.math.ethz.ch Subject: [R] Do environments