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) thanks, Alex --
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.
Hmm, you need to read R-exts throughoutly. There are tonnes of information in there, and a few chapters devoted to the topics you are after. As for actual examples - the known GUIs - Rgnome on unix (which AFAIK is no longer maintained but still useful as an example, I guess), Rgui on windows, and a few of the omegahat projects, RSJava, RSPython, RSPerl... all of these I mentioned are fairly heavy-going though. But R-exts is really what you need to read throughoutly... 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) > > thanks, > Alex > -- > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel