From edd at debian.org  Sat Jan 12 18:41:35 2008
From: edd at debian.org (Dirk Eddelbuettel)
Date: Sat, 12 Jan 2008 11:41:35 -0600
Subject: [Rd] Embedding R
In-Reply-To: <20080112162807.219410@gmx.net>
References: <20080112162807.219410@gmx.net>
Message-ID: <18312.64463.276251.888235@ron.nulle.part>


On 12 January 2008 at 17:28, AlexanderP at gmx.at wrote:
| hello all,
| 
| is there somewhere a comprehensive documentation for the (C) functions used
| for embedded R? (e.g. the functions which are used in the directory
| \tests\Embedding in the R source) 
| or
| Are there somewhere many more examples for this? (especially handover of
| data between C and embedded R) 

Not really.  I have done it based on how littler [1] works, and I am
basically doing the same from C++ -- I form R expression that I 'send' to R
and I use Dominick's under-appreciated RCpp (on CRAN) to easily convert R and
C++ data structures.  Poking around in the RCpp examples and the littler code
should get you started.

As for the data handover, this is more or less the same as 'normal' exchange
between R and C/C++ functions -- so the R-Exts manual, and the RCpp
documentation can help.

I hope to have something more to show, share and talk about for the UseR
tutorial I'll give.

In the interim, another choice may be RServe by Simon which you can run on
the local computer too.

Hope this helps,  Dirk
 
[1] http://dirk.eddelbuettel.com/code/littler.tml as well as Jeff's site

-- 
Three out of two people have difficulties with fractions.



[Rd] Embedding R
Dirk Eddelbuettel