[Rcpp-devel] Simple problem with modules
h.wickham at gmail.com
Wed Feb 20 22:14:13 CET 2013
I've attached a somewhat tweaked example which I think might indicate
that modules don't know about const NumericVector&?
> GroupFixed <- m$GroupFixed
> g <- GroupFixed$new(x, 0.1, 0)
The answers should be 8, 100 and 0.08075014 respectively.
On Wed, Feb 20, 2013 at 11:39 AM, Hadley Wickham <h.wickham at gmail.com> wrote:
> Hi all,
> I'm having a simple problem with modules - when I instantiating the
> object and call the methods in C++, I get a different answer from
> instantiating and calling the methods in R via a module. I've
> attached a simple test case that you can run with sourceCpp() - when I
> run it (using svn rev 4264 or CRAN version) I get 0 instead of 8. What
> am I doing wrong?
> Chief Scientist, RStudio
Chief Scientist, RStudio
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1136 bytes
Desc: not available
More information about the Rcpp-devel