Re: [Rd] R5 reference classes: how to initialize exactly?

2010-11-22 Thread Davor Cubranic
Just a clarification for posterity - R5 has nothing to do with the new reference classes. It's not even an official name, but informally it's a collection of ideas for an entirely new object system that can replace both S3 and S4 (not that it will but it should be seen as having the

Re: [Rd] R5 reference classes: how to initialize exactly?

2010-11-22 Thread John Chambers
As I posted previously in this same thread, reference classes are _not_ an addition to S4, but provide an interface to the classical OOP programming model in R, via environments and tools for those (and, also, via some S4 techniques). The current version of the Rcpp package illustrates how

Re: [Rd] R5 reference classes: how to initialize exactly?

2010-11-17 Thread Simon Urbanek
Just a clarification for posterity - R5 has nothing to do with the new reference classes. It's not even an official name, but informally it's a collection of ideas for an entirely new object system that can replace both S3 and S4 (not that it will but it should be seen as having the capability

Re: [Rd] R5 reference classes: how to initialize exactly?

2010-11-17 Thread Janko Thyson
-Ursprüngliche Nachricht- Von: Simon Urbanek [mailto:simon.urba...@r-project.org] Gesendet: Mittwoch, 17. November 2010 11:35 An: Janko Thyson Cc: 'r-de...@r-project. org' Betreff: Re: [Rd] R5 reference classes: how to initialize exactly? Just a clarification for posterity - R5

Re: [Rd] R5 reference classes: how to initialize exactly?

2010-11-17 Thread Romain Francois
Le 17/11/10 11:39, Janko Thyson a écrit : -Ursprüngliche Nachricht- Von: Simon Urbanek [mailto:simon.urba...@r-project.org] Gesendet: Mittwoch, 17. November 2010 11:35 An: Janko Thyson Cc: 'r-de...@r-project. org' Betreff: Re: [Rd] R5 reference classes: how to initialize exactly? Just

Re: [Rd] R5 reference classes: how to initialize exactly?

2010-11-17 Thread John Chambers
On the subject of clarification, Reference Classes are not really an addition to S4. They are a programming interface to allow OOP (i.e., C++ or Java-style) programming in R. They do use some S4 tools but rely more on some valuable existing techniques for dealing with environments, such as

Re: [Rd] R5 reference classes: how to initialize exactly?

2010-11-15 Thread Janko Thyson
Sorry, I was stupid: MyRefObj - setRefClass(Blabla, .) One can always get the generator object of an defined class with 'getRefClass()'. So: g - getRefClass(Blabla) x - g$new(.) Regards, Janko Von: Janko Thyson [mailto:janko.thy...@ku-eichstaett.de] Gesendet: Dienstag,