[R] C++ interface?

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Fri Nov 15 16:22:48 CET 2002


The following CRAN packages (at least) use C++ sources

GeneSOM, Matrix, RandomFields, Suppdists, e1071, geepack, rgenoud

I would start by looking at Matrix, which also has an article in the
DSC2001 proceedings.


On Fri, 15 Nov 2002, Fredrik Karlsson wrote:

> Dear list,
>
> I would like to write a R package that interfaces with existing C++
> classes (which I did not write myself). After having read the relevant
> part of `Writing R Extensions', I have to say that the issue is still
> somewhat of a mistery to me. One obvious explanation for this is that I
> have not had any practical experience in C++, only C, meaning that I am
> relying on what I've read a long time ago.
>
> However, I think I'll manage if I could find example code more extensive
> than the one in the `Writing R Extensions' manual. Does anyone know
> of any package that are using the C++ <-> R interface that where I can
> get inspiration?
>
> What I would need is example code of class instantiation, calling of
> object method as well as passing values/objects from/to C++ within R.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list