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

From: Thomas Petzoldt <thpe_at_simecol.de>
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:

http://www.simecol.de/pkg/cpackage_0.1.tar.gz

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.



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 - 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive