
198 R Programming for Bioinformatics
6.3.9 Calling R from C
There are many situations where it will be convenient to be able to evaluate
an R function from inside computations being carried out in C. We discuss
this topic in some detail in Section 6.6.2.
6.4 Using the R API
The R application programming interface (API) is defined by the R Exten-
sions manual and the information provided in the header file, Rinternals.h,
provided with every R installation.
We now describe some ways in which you can simplify the task of writing
C code. Perhaps the most important observation is that R contains very
many utility routines that are widely tested and efficiently ...