Re: [Rcpp-devel] Segmentation fault in Rcpp::DataFrame::create when data is sufficiently long

2012-01-15 Thread Dirk Eddelbuettel
Hi Slava, That is a textbook example of a nice and detailed bug report. Well done. On 13 January 2012 at 14:19, Slava Mazur wrote: | | Can you chase down where the segfault happens? | In different places. Sometimes in R_gc_internal, sometimes in malloc. I've prepared an independent example so t

Re: [Rcpp-devel] IntegerVector initialization

2012-01-15 Thread Romain François
Le 12/01/12 11:29, Gregor Kastner a écrit : This is a minor thing but caused some confusion to me: IntegerVector foo1(2, 4.0); // works IntegerVector foo2(2, 4);// throws error while IntegerVector bar1 = IntegerVector::create(4.0, 4.0); // works IntegerVector bar2 = IntegerVector::create