Re: [Rcpp-devel] DataFrame::create() in endless loop

2012-02-28 Thread Dirk Eddelbuettel
On 29 February 2012 at 08:39, Darren Cook wrote: | > I used IntegerVector and friends, | > and changed from DataFrame to List. | | Hello Steffen, | Do you mean you needed to do both those changes to get it to work? Or | either would have fixed your problem, but you decided to do both "just | in

Re: [Rcpp-devel] DataFrame::create() in endless loop

2012-02-28 Thread Darren Cook
> I used IntegerVector and friends, > and changed from DataFrame to List. Hello Steffen, Do you mean you needed to do both those changes to get it to work? Or either would have fixed your problem, but you decided to do both "just in case"? Slava wrote: >> I had the same problem a while ago and t

Re: [Rcpp-devel] DataFrame::create() in endless loop

2012-02-28 Thread Steffen Neumann
Hi, thanks everyone for the help, I used IntegerVector and friends, and changed from DataFrame to List. Thanks, Steffen On Tue, 2012-02-28 at 14:59 -0500, Slava Mazur wrote: > > It's a memory problem from R. It is trying to do garbage collection > > > (RunGenCollector) and getting hung up, p

Re: [Rcpp-devel] DataFrame::create() in endless loop

2012-02-28 Thread Slava Mazur
> It's a memory problem from R. It is trying to do garbage collection > (RunGenCollector) and getting hung up, probably because of exhausting > one of the stacks in R. Your std::vector objects need to be > copied to R objects. Is it possible to define them as IntegerVector's > instead, in which

Re: [Rcpp-devel] DataFrame::create() in endless loop

2012-02-28 Thread Dirk Eddelbuettel
On 28 February 2012 at 17:16, Steffen Neumann wrote: | Hi, | | I am currently hunting a problem where a call to | Rcpp::DataFrame::create() goes into a seemingly | endless loop. seqNum,acquisitionNum and msLevel | are all std::vector of length N (~3.9 million), | and if I change the code to onl

Re: [Rcpp-devel] DataFrame::create() in endless loop

2012-02-28 Thread Douglas Bates
On Tue, Feb 28, 2012 at 10:16 AM, Steffen Neumann wrote: > Hi, > > I am currently hunting a problem where a call to > Rcpp::DataFrame::create() goes into a seemingly > endless loop. seqNum,acquisitionNum and msLevel > are all std::vector of length N (~3.9 million), > and if I change the code to on