From ripley at stats.ox.ac.uk  Tue Apr 12 13:25:59 2005
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue Apr 12 13:26:15 2005
Subject: [Rd] C Interface to R?
In-Reply-To: <425BA6A0.5000600@math.aau.dk>
References: <200504121236.19913.alexander_schinner@genua.de>
	<425BA6A0.5000600@math.aau.dk>
Message-ID: <Pine.LNX.4.61.0504121223160.3559@gannet.stats>

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@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


[Rd] C Interface to R?
Prof Brian Ripley