[R] Call C code from R

Roland Rau roland.rproject at gmail.com
Thu Sep 13 15:58:51 CEST 2007


Hi!

Olga K. Kamneva wrote:
> Hello, All!
> 
> I have function which is written in C, the function uses other functions
> also builded bu me. Now I need to use the function to build R function.
> My questions are:
> 1. How can I include libraries (for example, iomanip, sstream, tcl.h)?
> 2. Should I put other function to the separate file and then include the
> file?

this document is not very recent but it helped me awhile ago:
http://www.biostat.jhsph.edu/~rpeng/docs/interface.pdf

Best,
Roland



More information about the R-help mailing list