Re: [R] skeleton for package containing C code?

From: Dirk Eddelbuettel <edd_at_debian.org>
Date: Wed, 19 Nov 2008 10:55:30 -0600

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.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 19 Nov 2008 - 16:58:18 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 19 Nov 2008 - 17:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive