Re: [Rcpp-devel] Loading a package using Rcpp Modules results in memory corruption

2011-01-07 Thread Romain Francois
Le 05/01/11 18:52, Douglas Bates a écrit : I don't know whether this is through error on my part or because of an "infelicity" in the Rcpp module code but the lme4a package, which now uses Rcpp modules extensively, ends up with some difficult-to-trace memory corruption issues. Yesterday i finall

Re: [Rcpp-devel] Sugar seems slower than Rcpp.

2011-01-07 Thread Romain Francois
Le 05/01/11 14:01, Dirk Eddelbuettel a écrit : On 5 January 2011 at 10:55, Cedric Ginestet wrote: | Dear All, | | Here are some simulations that I have run this morning. Romain's suggestion to | compute xV.size() before the loop and Douglas' idea of using accumulate appear | to work best. Howeve

Re: [Rcpp-devel] Sugar seems slower than Rcpp.

2011-01-07 Thread Dirk Eddelbuettel
On 7 January 2011 at 12:54, Romain Francois wrote: | Le 05/01/11 14:01, Dirk Eddelbuettel a écrit : | > | > On 5 January 2011 at 10:55, Cedric Ginestet wrote: | > | Dear All, | > | | > | Here are some simulations that I have run this morning. Romain's suggestion to | > | compute xV.size() before

Re: [Rcpp-devel] Loading a package using Rcpp Modules results in memory corruption

2011-01-07 Thread Douglas Bates
On Fri, Jan 7, 2011 at 5:34 AM, Romain Francois wrote: > Le 05/01/11 18:52, Douglas Bates a écrit : >> >> I don't know whether this is through error on my part or because of an >> "infelicity" in the Rcpp module code but the lme4a package, which now >> uses Rcpp modules extensively, ends up with s

Re: [Rcpp-devel] Loading a package using Rcpp Modules results in memory corruption

2011-01-07 Thread Romain Francois
Hmm. I commited 2845 and 2846 today. Anyway, if you see it also with 0.9.0 this means more detective work. Le 07/01/11 15:05, Douglas Bates a écrit : On Fri, Jan 7, 2011 at 5:34 AM, Romain Francois wrote: Le 05/01/11 18:52, Douglas Bates a écrit : I don't know whether this is through error

[Rcpp-devel] Using Rcpp on mingw 4.5.2

2011-01-07 Thread Steffen Neumann
Hi, I have a package mzR that uses Rcpp to wrap some C++ code at https://github.com/sneumann/mzR The stuff works splendid on Ubuntu 10.04 with gcc-4.4.3, but for the life of it I am unable to get it to compile on 64bit Windows with a recent R-2.13.x snapshot (also tried 2.12.x) with neither the

Re: [Rcpp-devel] Using Rcpp on mingw 4.5.2

2011-01-07 Thread Dirk Eddelbuettel
Hi Steffen, Thanks for posting here. On 8 January 2011 at 00:41, Steffen Neumann wrote: | Hi, | | I have a package mzR that uses Rcpp to wrap | some C++ code at https://github.com/sneumann/mzR | | The stuff works splendid on Ubuntu 10.04 with gcc-4.4.3, Sure. I am mostly on Ubuntu 10.10 as we

Re: [Rcpp-devel] Loading a package using Rcpp Modules results in memory corruption

2011-01-07 Thread Dominick Samperi
I checked things under Linux and Windows (using GCC and VC++ DLL's) and the same problem occurs at the same place, which is a good sign when it comes to memory issues. Basically, the Rcpp::Reference(std::string) constructor that is part of S4_field, or S4_CppOverloadedMethods constructors fails, de