Hi Sri,
I haven't really elaborated on it having other stuff to prepare first, but as
far as I got you first assign data to a vector:
#include
#include
#undef R_INTERFACE_PTRS
#include
#include "Rcpp.hpp"
#include
#include
#include
//assigning a vector
SEXP ab;
PROTECT(ab =
Hi Dirk,
ok - now it works. All the MACROs scared me a little,
but now I've found them in Rinternals.h and Rdefines.h .
There was a section in the official manual referring to these,
but this section was not introduced for embedded R but for calling c++
from R - this is why i didn't find it at
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 ve
Dirk, that sounds exactly like what I've been looking for.
Thanks a lot!
Peter
Peter,
On 18 June 2008 at 14:13, [EMAIL PROTECTED] wrote:
| Hi R-Developers,
|
| I'm working on running statistical analyses with embedded R from a
| Qt-GUI-application (C++).
|
| I've been able to link with R libr
Hi R-Developers,
I'm working on running statistical analyses with embedded R from a
Qt-GUI-application (C++).
I've been able to link with R libraries, but I'm having a hard time to
understand the C-coding examples. I'm a C++, not a C programmer (never
used malloc before), and many of the