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...@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@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. > ______________________________________________ R-help@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.