[R] Call C code from R

Seth Falcon sfalcon at fhcrc.org
Thu Sep 13 16:37:51 CEST 2007


"Olga K. Kamneva" <kamushkina at gmail.com> writes:

> 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 is a question more appropriate for the R-devel list.

I would recommend reading over the Writing R Extensions Manual and
then taking a looks at some of the CRAN or Bioconductor packages which
contain native code.

+ seth

-- 
Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center
BioC: http://bioconductor.org/
Blog: http://userprimary.net/user/



More information about the R-help mailing list