Re: [Rd] A 'true' R-wrapper for C++ classes

2005-04-18 Thread Prof Brian Ripley
On Mon, 18 Apr 2005, Ali - wrote:
I am trying to wrap some C++ classes into R.
(1) Comparing the OOP and methods packages, I have came to this conclusion 
that OOP works much better for this wrapper -- please correct me if I am 
wrong. One question is why this useful package (OOP) is not included in the 
official release of R?
Quick answer: almost nothing else makes use of it.  The `methods' package 
is depended on by 27 CRAN packages and most BioC packages.  The OOP 
package is not even on CRAN (although it once was as part of Omegahat).

The official release of R contains packages that are thought to be of high 
quality, actively maintained and useful to a wide range of R users.  And 
those are necessary conditions, not sufficient ones -- an at least 
historic criterion was to fill out coverage of the S Blue and White books
and the sort of statistics covered by MASS (the book).

--
Brian D. Ripley,  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595
__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] A 'true' R-wrapper for C++ classes

2005-04-18 Thread Duncan Murdoch
> Hello
>
> I am trying to wrap some C++ classes into R.
>
> (1) Comparing the OOP and methods packages, I have came to this conclusion
> that OOP works much better for this wrapper -- please correct me if I am
> wrong.

The methods package using a different conceptual model of object-oriented
programming than C++ uses, one based on generic functions
rather than methods being defined within classes.  You should also look at
the R.oo package for another way to do what you want.

> One question is why this useful package (OOP) is not included in
> the
> official release of R?

There are a lot of useful packages that aren't in R.  They can't all be.

Another question is why OOP is not on CRAN.  This would be because its
author (John Chambers) thought Omegahat.org was a better place to put it
(assuming you're talking about that OOP).

The rest of your message contained a lot of repeated copies of the same
text.  I didn't read it all, so might have missed something new hidden in
there.

Duncan Murdoch

__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel