Placement of attributes

U-E59264-Osman Buyukisik buyuk@c0230.ae.ge.com
Mon, 23 Mar 1998 13:00:58 -0500 (EST)


Well, I found isString(), and coerceToString in coerce.c. Just added
the follwoing line to line 479 in file printarray.c:

479        PROTECT(rl = getAttrib(x, install("row.names")));
480        if(!isString(rl)) PROTECT(rl = coerceToString( rl )); <--- NEW
481        PROTECT(cl = getAttrib(x, R_NamesSymbol));

Now I don't get seg fault. Machines get printed out but at the end I
get a message :
stack imbalance in print.data.frame, 13 then 14

I guess I did not do this right :-) I had to remove "static " from
definition of  coerceToString in coerce.c. I think row.names should be
coerced to String as it is read in since the help on row.names says it
is a char vector.

P.S. I am playing with R-snapshot March 17 on hpux10.20.

Osman



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._