From buyuk@c0230.ae.ge.com  Mon Mar 23 18:00:58 1998
From: buyuk@c0230.ae.ge.com (U-E59264-Osman Buyukisik)
Date: Mon, 23 Mar 1998 13:00:58 -0500 (EST)
Subject: Placement of attributes
In-Reply-To: <199803231712.MAA08319@c0230.ae.ge.com> (message from
 U-E59264-Osman Buyukisik on Mon, 23 Mar 1998 12:12:14 -0500 (EST))
Message-ID: <199803231800.NAA09688@c0230.ae.ge.com>

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


Placement of attributes
U-E59264-Osman Buyukisik