Hi folks,
I'm building several Rcpp modules which specify parts of a complicated
statistical model, and want to pass them to a main module for use. Is there
an easy way to do this?
Below is a simplified example, with question marks where I'm not sure what
to do. I've tried accepting a pointer to
On 9 September 2014 at 19:56, Grant Brown wrote:
| Hi folks,
|
| I'm building several Rcpp modules which specify parts of a complicated
| statistical model, and want to pass them to a main module for use. Is there an
| easy way to do this?
|
| Below is a simplified example, with question marks
Thanks for the feedback, I'll definitely consider those options.
My original motivation (besides the sheer convenience of Rcpp modules as a
way to move work into C++ land) was that there's a lot of data and model
specification information that needs to migrate from R user land to the
lower level l
Grant,
In my own work, I found that input validation is actually significantly
easier to do in R. (and even if you did do it in the c++ layer, informative
error messages should probably be thrown as exceptions back to R,
regardless.)
A giant constructor is not necessary either, as you can send da
> Below is a simplified example, with question marks where I'm not sure what
> to do. I've tried accepting a pointer to A, playing with using XPtrs, and a
> bunch of things which made far less sense, but so far no luck.
As an addendum to others' comments...
I've been working on a kinda-sorta simi