[R] Object oriented programming resources

Vadim Ogranovich vograno at evafunds.com
Fri Aug 13 05:06:43 CEST 2004

The Bioconductor project posts a short tutorial "A guide to using S4
Objects" under "Developer Page" frame. I've found it useful. 

Note that R-s S4-classes approach to OOP is very different from the one
of C++ or Java. Yet you will find member vars, they are called slots.

> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch 
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Matthew Walker
> Sent: Thursday, August 12, 2004 7:56 PM
> To: r-help at stat.math.ethz.ch
> Subject: [R] Object oriented programming resources
> Hi,
> I'm looking for resources to read about the object-oriented 
> features of R.
> I have looked through the "Manuals" page on r-project.org.  
> The most useful of the documents seemed to be the "draft of 
> the R language definition".  However it had only about 6 
> pages on the topic. 
> I have also used Google, but my problem here is that "R" appears in a
> *lot* of webpages!  I tried limiting the search by using 
> "site:r-project.org", but didn't find anything very useful.
> Specifically, I'm trying to find information on "member 
> variables" (I think that's the correct term), as I'd like to 
> copy this concept from C++:
> class a {
>   ...
> private:
>   int x;  // I think the term for this is a member variable };
> Thanks for your thoughts,
> Matthew
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! 
> http://www.R-project.org/posting-guide.html

More information about the R-help mailing list