Skip to content
Prev 29266 / 63424 Next

embedding R in c++ (Qt) application

Hi Dirk,

I've had a closer look now at Rcpp and I've found a lot
of constructors and functions that take SEXPs as input - so the way back from
R to C++ seems clear to me.

However, I don't know how to pass my data from c++ to R . I've managed
to have the embedded R evaluate commands (construct vectors and do  
something with them) with the help of the official manual,
but I couldn't assign for instance an RcppVector to an SEXP or any of  
these constructed vectors ...
The only clue I had is the dataframe that is constructed in the  
included Rcpp example  - but it's used only with a custom made  
function - not with standard R functions which would be my goal with  
the ANOVA.

Thanks for your help!!!
Peter