On 16 May 2013 at 14:49, Jonathan Olmsted wrote: | Several things. | | Xiao, Dirk's code gives me a segfault immediately and reliably. | | All, when I do this whole song and dance using the "old" Rcpp/inline/ | cxxfunction approach, I don't have any issues. One obvious difference you can | see (like was mentioned) in the generated code (visibile using verbose=TRUE) is | the declaration of an RNGScope object. | | But, if the memory issue crops up when you call a C++ function (syncing with | R's RNG state) 1e6 times AND you are already writing C++ maybe this is an | opportunity to just put one more layer of the code into C++ and create only one | such RNGScope object?
Beautiful. So we get to blame R Core after all? ;-) Dirk -- Dirk Eddelbuettel | [email protected] | http://dirk.eddelbuettel.com _______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
