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

From: Thomas Petzoldt <>
Date: Wed, 19 Nov 2008 21:15:28 +0100

Rainer M Krug wrote:
> Hi
> 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.
> Thanks,
> Rainer

Hi Rainer,

you can download a minimal R package with C source from here:

You can also include C++ files in src/ if you provide plain C interfaces as described in "Writing R Extensions".

Hope that helps ...

Thomas P. mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed 19 Nov 2008 - 20:17:33 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 - 20:30:26 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive