From edd at debian.org  Thu Dec 10 22:16:04 2009
From: edd at debian.org (Dirk Eddelbuettel)
Date: Thu, 10 Dec 2009 15:16:04 -0600
Subject: [Rd] Which packages in R use C++?
In-Reply-To: <366c6f340912101302h693f99e7m8bbaa29975c879fa@mail.gmail.com>
References: <366c6f340912101302h693f99e7m8bbaa29975c879fa@mail.gmail.com>
Message-ID: <19233.25876.540878.45388@ron.nulle.part>


On 10 December 2009 at 15:02, Peng Yu wrote:
| I want to see some working examples on how to call C++ programs from
| R. Could somebody let me know which R packages mainly use C++ rather
| than C or Fortran?

I am not aware of anyone keeping aggregate statistics.  

If you would like a simple example of C++ usage --- via the Rcpp package I
maintain --- then I'd recommend the Earth Mover Distance package on R-Forge
which wraps a single function providing the Earth Mover Distance metric:

 https://r-forge.r-project.org/projects/earthmovdist/

and the SVN sources are here

 https://r-forge.r-project.org/plugins/scmsvn/viewcvs.php/pkg/?root=earthmovdist

A more complicated example is e.g. RQuantLib on R-Forge and CRAN.

Dirk

-- 
Three out of two people have difficulties with fractions.



[Rd] Which packages in R use C++?
Dirk Eddelbuettel