Re: [Rd] environmentName

2007-01-07 Thread Duncan Murdoch
On 1/7/2007 11:31 AM, Gabor Grothendieck wrote: > What I was referring to was your suggestion to add a class and a Name > attribute to the environment. Yes, that was clear. Duncan Murdoch That would change all references to it. > But what I would really want to do is to leave it alone unchang

Re: [Rd] environmentName

2007-01-07 Thread Gabor Grothendieck
What I was referring to was your suggestion to add a class and a Name attribute to the environment. That would change all references to it. But what I would really want to do is to leave it alone unchanged so it can be used in its original form by other applications but for my purpose create a sub

Re: [Rd] environmentName

2007-01-07 Thread Duncan Murdoch
On 1/7/2007 10:01 AM, Gabor Grothendieck wrote: > One other comment. If I place an attribute on the environment as you > suggest that changes all uses of the environment. Yes, that's exactly what you wanted, as far as I can tell. If an environment prints as then all uses of that environmen

Re: [Rd] environmentName

2007-01-07 Thread Gabor Grothendieck
One other comment. If I place an attribute on the environment as you suggest that changes all uses of the environment. I cannot keep the original environment intact and have a subobject which represents the original environment plus the attribute. This is just one example of why the feature disc

Re: [Rd] environmentName

2007-01-07 Thread Prof Brian Ripley
On Sun, 7 Jan 2007, Duncan Murdoch wrote: [...] > If you want > to test for whether two variables refer to the same environment, then > attach a unique label to the environments when you create them and check > the labels. You can simply use identical(env1, env2). -- Brian D. Ripley,

Re: [Rd] environmentName

2007-01-07 Thread Gabor Grothendieck
On 1/7/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 1/7/2007 5:01 AM, Gabor Grothendieck wrote: > > I noticed the new environmentName in R 2.5.0dev. Thus I gather that > > each environment has: > > > > (1) a name > > (2) a hex value > > > > so > > > > 1. environmentName gets the name. Is th

Re: [Rd] environmentName

2007-01-07 Thread Duncan Murdoch
On 1/7/2007 5:01 AM, Gabor Grothendieck wrote: > I noticed the new environmentName in R 2.5.0dev. Thus I gather that > each environment has: > > (1) a name > (2) a hex value > > so > > 1. environmentName gets the name. Is there any way to set the name? The NEWS entry says: o New functi