Re: [Rd] str() resets class for environments

2004-11-26 Thread Peter Dalgaard
[EMAIL PROTECTED] writes: If environments were wrapped, would it still be possible to change the attributes of e.g. pos.to.env (5), as opposed to the attributes of a copy? That's the feature I'm keen to retain. For example: Offhand: Yes, if things are arranged so that you set attributes on

Re: [Rd] str() resets class for environments

2004-11-25 Thread Gabor Grothendieck
: r-devel at stat.math.ethz.ch : Subject: RE: [Rd] str() resets class for environments : : : Henrik Bengtsson wrote: : : Should attr()-, attributes()-, : class()- give an error when applied to an environment? I see : no reason why : not. : : It would break the workspace-organization

Re: [Rd] str() resets class for environments

2004-11-25 Thread Peter Dalgaard
Gabor Grothendieck [EMAIL PROTECTED] writes: : I am curious though, do you not run into problems by setting and getting : attributes on environment in 'mvbutils'? The example of John Chambers I : re-posted, which shows that attributes can (will?) get killed by operating : on the [environment]

Re: [Rd] str() resets class for environments

2004-11-25 Thread Gabor Grothendieck
Peter Dalgaard p.dalgaard at biostat.ku.dk writes: : : Gabor Grothendieck ggrothendieck at myway.com writes: : : : I am curious though, do you not run into problems by setting and getting : : attributes on environment in 'mvbutils'? The example of John Chambers I : : re-posted, which shows

RE: [Rd] str() resets class for environments

2004-11-25 Thread Mark.Bravington
: Henrik Bengtsson: : : I am curious though, do you not run into problems by setting and getting : : attributes on environment in 'mvbutils'? The example of John Chambers I : : re-posted, which shows that attributes can (will?) get killed by operating : : on the [environment]

Re: [Rd] str() resets class for environments

2004-11-25 Thread Gabor Grothendieck
Mark.Bravington at csiro.au writes: : : : Henrik Bengtsson: : : : I am curious though, do you not run into problems by : setting and getting : : : attributes on environment in 'mvbutils'? The example of : John Chambers I : : : re-posted, which shows that attributes can (will?) get :

Re: [Rd] str() resets class for environments

2004-11-23 Thread Prof Brian Ripley
On Tue, 23 Nov 2004, Roger D. Peng wrote: I noticed the following today --- str() seems to remove any extra class information added to an environment. e - new.env() class(e) [1] environment class(e) - c(foo, class(e)) class(e) [1] foo environment str(e) Classes 'foo', 'environment'

RE: [Rd] str() resets class for environments

2004-11-23 Thread Henrik Bengtsson
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Prof Brian Ripley Sent: Tuesday, November 23, 2004 4:22 PM To: Roger D. Peng Cc: R Devel Subject: Re: [Rd] str() resets class for environments On Tue, 23 Nov 2004, Roger D. Peng wrote: I

RE: [Rd] str() resets class for environments

2004-11-23 Thread Mark.Bravington
Henrik Bengtsson wrote: Should attr()-, attributes()-, class()- give an error when applied to an environment? I see no reason why not. It would break the workspace-organization code in the 'mvbutils' package, which relies on being able to set and unset attributes of environments on the

RE: [Rd] str() resets class for environments

2004-11-23 Thread Henrik Bengtsson
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, November 24, 2004 1:43 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [Rd] str() resets class for environments Henrik Bengtsson wrote: Should