From hb at stat.berkeley.edu  Thu Jan  4 00:00:01 2007
From: hb at stat.berkeley.edu (Henrik Bengtsson)
Date: Thu, 4 Jan 2007 10:00:01 +1100
Subject: [Rd] Which programming paradigm is the most used for make R
	packages?
In-Reply-To: <20070103204956.GB8906@wheat.betterworld.us>
References: <50a711930701030946s7d4983d5h2150a4081f5677c6@mail.gmail.com>
	<20070103204956.GB8906@wheat.betterworld.us>
Message-ID: <59d7961d0701031500v2cf8df0cs6b5544fe4d660db7@mail.gmail.com>

On 1/4/07, Ross Boylan <ross at biostat.ucsf.edu> 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.

Cheers

Henrik

>
> Ross Boylan
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] Which programming paradigm is the most used for make R packages?
Henrik Bengtsson