[R] R.oo and S4?

Gabor Grothendieck ggrothendieck at gmail.com
Wed Nov 11 22:00:15 CET 2009


I think it would be best to learn S3 first since that is a fundamental
part of R and S4 is an extension of it and also its very simple so
there is not much to learn.  After that you can branch out.

On Mon, Oct 26, 2009 at 2:28 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
> S3 and S4 are part of the core of R so they would presumably be the
> most used.  S4 is an extension to S3 but adds strong typing and a
> number of other features.  R.oo and proto are packages on CRAN which
> give access to different models of object oriented programming than S3
> and S4. R.oo uses a more conventional model of OO than S3 or S4 that
> is probably closer to what you are used to if you are coming form
> another language while proto uses the prototype model (or pure object
> model). proto tends to apply in user interface applications and there
> is some info on which other packages make use of proto on the proto
> home page at: http://r-proto.googlecode.com
>
> On Mon, Oct 26, 2009 at 2:47 PM, Peng Yu <pengyu.ut at gmail.com> wrote:
>> There are different way to make R classes. I know R.oo and S4. I'm
>> wondering which one is the current popular one. Which one is current
>> recommended when make new R packages? Thank you!
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>




More information about the R-help mailing list