[R] skeleton for package containing C code?

Dirk Eddelbuettel edd at debian.org
Wed Nov 19 17:55:30 CET 2008


On 19 November 2008 at 18:44, Rainer M Krug wrote:
| I looked in the "writing R extensions" and also into package.skeleton,
| but could not find anything:
| 
| I am looking for a skeleton or simple example on how to create a
| package which contains C++ code.
| 
| I only want to implement one function, so nothing complicated. The
| idea is to use the package to make it easier to install the function
| on several Linux computers - no windows required at the moment.

Yes, the Rcpp package from CRAN.  Start with   

    help("Rcpp-package", package="Rcpp")   

Comments on where the documentation is not clear are welcome.

More about Rcpp is e.g. at http://dirk.eddelbuettel.com/code/rcpp.html 

Dirk

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



More information about the R-help mailing list