Skip to content
Prev 26151 / 63424 Next

Call C code from R

On Mon, 17 Sep 2007, ????? ?. ??????? wrote:

            
Your subject line says C ....
What you link into R is a shared object aka DLL.  If you use the 
documented ways (e.g. R CMD CHLIB) to make this, it will be linked against 
the platform's standard C++ libraries.  There are lots of examples of C++ 
code in CRAN packages doing this.

The use of iostream is discussed in 'Writing R Extensions'.