[Bioc-devel] How to choose object-oriented programming paradigm for R?

Martin Morgan mtmorgan at fhcrc.org
Thu Sep 1 17:58:58 CEST 2011


On 09/01/2011 08:25 AM, Kenneth Chu wrote:
>
> Hello,
>
> Our lab is starting the process of re-implementing our existing R packages in the object-oriented programming paradigm.
>
> Are S4 classes/methods the "best" object-oriented programming paradigm for R?

Hi Ken --

For Bioconductor, use S4 classes. For other packages, solicit opinions 
elsewhere (e.g., StackOverflow).

Martin

>
> Are there other comparable paradigms that one should consider?
>
> For example, John Chambers' OOP package, which seems simpler, but does it provide less functionality than S4?  I also noticed that OOP is apparently not available through CRAN.
>
> Are these other paradigm, if any, as widely used, well-tested, stable and/or actively maintained as S4, and do they easily integrate with the rest of the software development facilities of R (e.g. R CMD check)?
>
> Thank you very much!
>
> Ken Chu, Ph.D.
> Scientific Associate
> Ontario Institute for Cancer Research
> Toronto, Ontario, Canada
>
> _______________________________________________
> Bioc-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/bioc-devel


-- 
Computational Biology
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109

Location: M1-B861
Telephone: 206 667-2793



More information about the Bioc-devel mailing list