Re: [R] S4 vs Reference Classes

2011-09-15 Thread Steve Lianoglou
Hi Joseph (and Martin), Don't mean to beat a dead horse, but I wanted to add one last comment to this thread in case someone stumbles upon this via google/gmane (or you) and gives it a shot. I neglected to mention a very important step that you'd have to do to in order to avoid shooting yourself

Re: [R] S4 vs Reference Classes

2011-09-14 Thread Steve Lianoglou
Hi, Just wanted to say that embedding a slot in your class that's an environment (as I shown earlier) will still solve your problem w/o you having to switch to Ref classes (since you've already done lots of work for your app in S4). Let's assume you have a slot `cache` that is an environment, usi

Re: [R] S4 vs Reference Classes

2011-09-14 Thread Joseph Park
Gentlemen: Steve, Martin & Doug: Thanks for the insightful comments regarding my query. I think that Martin and Doug have well assessed my position and both offer useful advice and have greatly improved my limited understanding of S4. Thanks! At this point, i'm well into the app

Re: [R] S4 vs Reference Classes

2011-09-14 Thread Martin Morgan
On 09/14/2011 06:01 AM, Joseph Park wrote: Thanks Martin. What i'm hoping to do is have a class object, with a member method that can change values of slots in the object, without having to assign values by external assignment to the object. Something like this: setClass ( "Element", representa

Re: [R] S4 vs Reference Classes

2011-09-14 Thread Joseph Park
Thanks Martin. What i'm hoping to do is have a class object, with a member method that can change values of slots in the object, without having to assign values by external assignment to the object. Something like this: setClass ( "Element", representation ( x = "numeric", y

Re: [R] S4 vs Reference Classes

2011-09-13 Thread Martin Morgan
On 09/13/2011 10:54 AM, Joseph Park wrote: Hi, I'm looking for some guidance on whether to use S4 or Reference Classes for an analysis application I'm developing. I'm a C++/Python developer, and like to 'think' in OOD. I started my app with S4, thinking that was the best

Re: [R] S4 vs Reference Classes

2011-09-13 Thread Douglas Bates
On Tue, Sep 13, 2011 at 4:11 PM, Steve Lianoglou wrote: > Hi, > > On Tue, Sep 13, 2011 at 1:54 PM, Joseph Park wrote: >> >>   Hi, I'm looking for some guidance on whether to use >>   S4 or Reference Classes for an analysis application >>   I'm developing. >>   I'm a C++/Python developer, and like

Re: [R] S4 vs Reference Classes

2011-09-13 Thread Douglas Bates
On Tue, Sep 13, 2011 at 12:54 PM, Joseph Park wrote: >   Hi, I'm looking for some guidance on whether to use >   S4 or Reference Classes for an analysis application >   I'm developing. >   I'm a C++/Python developer, and like to 'think' in OOD. >   I started my app with S4, thinking that was the

Re: [R] S4 vs Reference Classes

2011-09-13 Thread Steve Lianoglou
Hi, On Tue, Sep 13, 2011 at 1:54 PM, Joseph Park wrote: > >   Hi, I'm looking for some guidance on whether to use >   S4 or Reference Classes for an analysis application >   I'm developing. >   I'm a C++/Python developer, and like to 'think' in OOD. >   I started my app with S4, thinking that was