Skip to content
Prev 22420 / 63424 Next

Automatic C wrapper generation

On 18 October 2006 at 11:15, Benjamin Georgi wrote:
| I'm looking into creating R bindings for a medium sized C library. I 
| have read up on how to access simple C functions using the .C and .Call 
| methods and what I'm looking for now is a way to automate the generation 
| of the necessary glue code.
| 
| Ideal would be a SWIG-like package that does most of the leg work of the 
| interface generation for R.

Swig 1.3.30 will have basic R support. You can check it out from their CVS.
I haven't used it yet so I do not know how far this will get you.

Dirk