[Rcpp-devel] Segfault error during simulation in Rcpp
matteo.fasiolo at gmail.com
Mon May 6 20:47:38 CEST 2013
Ok, I'll do exactly this and I'll report if I still encounter this
problem in simpler programs. Thanks.
On Mon, May 6, 2013 at 7:39 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
> On 6 May 2013 at 19:03, Matteo Fasiolo wrote:
> | Sorry for the silly question, but since I'm using sourceCpp() too I
> | call
> | getRNGstate/putRNGstate, right?
> If you use any of the random number generators provided by R via Rcpp, then
> you __MUST__ also instantiate an RNGScope() object (which does this for
> We documented this *very* clearly in a number of places in the
> (And yes, sourceCpp() adds one as a courtesy but you should still add
> one. The extra few nanoseconds in execution speed won't matter.)
> You report is otherwise still unreproducible at my end.
> Your program is also complex in that it does a few things. Try writing
> smaller and smaller programs still exhibiting the error at your end. And
> report back if you find something, or have questions.
> Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Rcpp-devel