memory.profile() messes up the vector heap on Alpha/Linux?

Naoki Takebayashi ntakebay@bio.indiana.edu
Fri, 26 Nov 1999 20:32:42 -0500 (EST)


Thank you, Peter!
This fixed the problem. So 0.9.0 passes "make check" on Linux/alpha now!!

> Doh! Never mind gdb, sometimes you just need to look at the code:
> 
>     PROTECT(ans = allocVector(INTSXP, 21));
>     PROTECT(nms = allocVector(STRSXP, 21));
>     for (i = 0; i < 21; i++) {
>         STRING(ans)[i] = 0;
>         STRING(nms)[i] = R_BlankString;
>     }
> 
> Try making that INTEGER(ans)[i] = 0 ...


Naoki Takebayashi     <ntakebay@bio.indiana.edu>
--- Dept. of Biology, Indiana University, Jordan Hall 142
--- 1001 E. Third St. Bloomington, IN 47405-3700 USA



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._