tags:

views:

148

answers:

1

Hi,

Is there a way to call an R-Script within C-Code?

I did find the R Api for C (chaper 6. of the 'Writing R Extensions' manual), but as far as I understood this does "only" allow to call the C-Implementation of R. Of cause I could call the R-Script via shell, but that's no solution for me, since this does not allow proper passing of data (at least no if I don't what to write the data into a Csv-File or something like this). Is there a easy way of using the R to C parser beforehand?

Any hints you can give me?

regards, Tiny

+1  A: 

is there some reason that you don't want to embed it? This is covered in this question: R from C — Simplest Possible Helloworld…

Shane
yes ... legal issues