[Rcpp-devel] Simple problem with modules

Hadley Wickham h.wickham at gmail.com
Wed Feb 20 18:39:18 CET 2013

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: module-problem.cpp
Type: text/x-c++src
Size: 904 bytes
Desc: not available
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20130220/3663a67d/attachment.cpp>

More information about the Rcpp-devel mailing list