Re: [Rd] Which programming paradigm is the most used for make R packages?

From: Henrik Bengtsson <>
Date: Wed 03 Jan 2007 - 23:00:01 GMT

On 1/4/07, Ross Boylan <> wrote:
> On Wed, Jan 03, 2007 at 11:46:16AM -0600, Ricardo Rios wrote:
> > Hi wizards, does somebody know Which programming paradigm is the most
> > used for make R packages ? Thanks in advance.
> >
> You need to explain what you mean by the question, for example what
> paradigms you have in mind.
> R is a functional language; as I've discovered, this means some
> standard OO programming approaches don't carry over too naturally. In
> particular, functions don't really "belong" to classes. R purists
> would probably want that to say class-based 00 programming doesn't
> fit, since R is function-based OO.
> There is a package that permits a more traditional ("class-based") OO
> style; I think it's called R.oo.

More precisely, for the R purists, R.oo provides utility functions to define S3 methods safely, and in addition, as you write, a top-level class Object that provides class-based object-oriented design and implementation with support for reference variables through standard S3 inheritance.



> Ross Boylan
> ______________________________________________
> mailing list
> mailing list Received on Thu Jan 04 11:36:38 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 04 Jan 2007 - 01:31:06 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.