Skip to content

Summary: [R] read.table on Mac OS X, CARBON vs. DARWIN

4 messages · Meinhard Ploner, David R. Bickel, Brian Ripley

#
Thanks a lot, James!!
The problem is fixed. On the version 1.4.0 Mac/darwin (the latest 
available version for this system) the function read.table (which is 
called from read.delim etc., too) has the bug you explained.

Inserting the row
	nlines <- nlines+1
after
	 lines <- c(lines, line)
removes this bug.
M.


On Friday, February 22, 2002, at 02:33  PM, james.holtman at convergys.com 
wrote:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 3428 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20020222/c18a7c14/attachment.bin
#
Adding that line didn't work for me. I get the same problem as before 
(version 1.4.0):

'temp' is a two-line text file with three tab-delimited columns.

UNDER DARWIN:
 > read.table('temp')
               V1   V2   V3
1 AFFX-BioB-5_at -214 -139
2 AFFX-BioB-M_at  -49  -11
 > read.table('temp',as.is=TRUE)
stack imbalance in internal type.convert, 26 then 25stack imbalance in 
Internal, 25 then 24
stack imbalance in if, 19 then 18
stack imbalance in <-, 17 then 16
stack imbalance in {, 15 then 14
stack imbalance in for, 8 then 7
stack imbalance in {, 6 then 5
               V1   V2   V3
1 AFFX-BioB-5_at -214 -139
2 AFFX-BioB-M_at  -49  -11
Error: unprotect(): stack imbalance

UNDER CARBON:
 > read.table('temp')
               V1   V2   V3
1 AFFX-BioB-5_at -214 -139
2 AFFX-BioB-M_at  -49  -11
 > read.table('temp',as.is=TRUE)
               V1   V2   V3
1 AFFX-BioB-5_at -214 -139
2 AFFX-BioB-M_at  -49  -11
On Friday, February 22, 2002, at 09:00 X, Meinhard Ploner wrote:

            
http://www.mcg.edu/research/biostat/bickel.html

David R. Bickel, PhD
Assistant Professor
Medical College of Georgia
Office of Biostatistics and Bioinformatics
1120 Fifteenth St., AE-3037
Augusta, GA 30912-4900

Tel.: 706-721-4697; Fax: 706-721-6294
E-mail: dbickel at mail.mcg.edu or bickel at prueba.info
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 4761 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-help/attachments/20020222/19523d0e/attachment.bin
#
It won't fix the stack-imbalance bug, but upgrading to 1.4.1 will, as I
originally pointed out. However, as.is=FALSE was superseded by better
facilities in read.table in 1.4.0. (It will help with the slowness, but the
solution described is not as good as the one in 1.4.1.  Not that slowness
is a `bug'.)

All this has been discussed on R-help a few weeks ago, and it feels like we
are being asked to re-live the past.  Workarounds are in the archives,
several times.  I won't repeat them here as the real answer is to upgrade
to 1.4.1, and that *is* available for Darwin.  So can this discussion be
moved to R-mac-sig, as it seems a Mac-specific issue of how to install
1.4.1?
On Fri, 22 Feb 2002, David R. Bickel wrote:

            
[Using read.table with as.is=FALSE ...]
2 days later
#
Thank you for all your help. What is the URL for getting on the 
R-mac-sig list?
On Saturday, February 23, 2002, at 02:18 X, Prof Brian D Ripley wrote:

            
http://www.mcg.edu/research/biostat/bickel.html

David R. Bickel, PhD
Assistant Professor
Medical College of Georgia
Office of Biostatistics and Bioinformatics
1120 Fifteenth St., AE-3037
Augusta, GA 30912-4900

Tel.: 706-721-4697; Fax: 706-721-6294
E-mail: dbickel at mail.mcg.edu or bickel at prueba.info

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._