[Rd] C Interface to R?

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Apr 12 13:25:59 CEST 2005


On Tue, 12 Apr 2005, Duncan Murdoch wrote:

> Alexander Schinner wrote:

>> can somebody tell me, if there is a C or C++ Interface to the R? Reading 
>> the documentation, FAQ, CRAN etc. I found nothing. But as i am very new to 
>> R, I might have not searched in the right place.
>
> Yes, there is.  You want to look in the "Writing R Extensions" manual.
>
> The easiest thing is to write C routines to be called from R, but you can 
> also call some R functions or R itself from a C program.

If you want to do the latter, please use the R 2.1.0 beta which has more 
convenience functions and much more extensive documentation. If you are 
using a Unix-alike OS, see also the examples in tests/Embedding (which 
work in 2.1.0 beta but not in 2.0.1).

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list