Re: [Rcpp-devel] R session crashes when largely using a Rcpp sourced function

2014-10-06 Thread Pierre . Gloaguen
Dirk Eddelbuettel a écrit : On 6 October 2014 at 23:36, [email protected] wrote: | Hello, | | I have found out that the problem was in the R loop, the garbage | collection of R wasn't perform efficiently. Indeed, when I force the | garbage collection to be done, using R function gc(),

Re: [Rcpp-devel] R session crashes when largely using a Rcpp sourced function

2014-10-06 Thread Dirk Eddelbuettel
On 6 October 2014 at 23:36, [email protected] wrote: | Hello, | | I have found out that the problem was in the R loop, the garbage | collection of R wasn't perform efficiently. Indeed, when I force the | garbage collection to be done, using R function gc(), the Rsession | won't cra

Re: [Rcpp-devel] Rcpp: Error: not compatible with requested type

2014-10-06 Thread Dirk Eddelbuettel
On 4 October 2014 at 14:36, Pierre Lafaye de Micheaux wrote: | Thank you very much. That helped a lot. Our pleasure, and very nice to see that it already made it to CRAN! | Have a nice day. You too, cheers, Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | [email protected]

Re: [Rcpp-devel] R session crashes when largely using a Rcpp sourced function

2014-10-06 Thread Pierre . Gloaguen
Hello, I have found out that the problem was in the R loop, the garbage collection of R wasn't perform efficiently. Indeed, when I force the garbage collection to be done, using R function gc(), the Rsession won't crash, although the execution of the loop will be slower. This leads me to an