[R] bug in read.table?

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jan 9 11:01:52 CET 2002


Already reported twice to R-bugs and fixed earlier than those reports in
R-patched.  It's always worth checking those if you find a bug.

Note though as.is is close to being deprecated in favour of colClasses,
which is why this was not picked up before release.  So please either use
the new facilities or installed R-patched.


On Wed, 9 Jan 2002, Joerg Maeder wrote:

> Hello,
>
> in the new Relase (1.4) i get a different (worser) result for read.table
> with as.is=T: it crash!
>
> Input file (t.txt, with a name, 5 character and a numeric column)
> Name	short	kind	logable	use	save	lag
> m	"mo"	"x"	"n"	"1"	"n"	0
> Ptp	"PT"	"l"	"y"	"m"	"n"	0
>
> R-Code
> read.table('t.txt',header=T,row.names=1,as.is=T)
>
> R-Output
> 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 internal type.convert, 25 then 24stack imbalance in
> .Internal, 24 then 23
> stack imbalance in if, 18 then 17
> stack imbalance in <-, 16 then 15
> stack imbalance in {, 14 then 13
> stack imbalance in internal type.convert, 24 then 23stack imbalance in
> .Internal, 23 then 22
> stack imbalance in if, 17 then 16
> stack imbalance in <-, 15 then 14
> stack imbalance in {, 13 then 12
> stack imbalance in internal type.convert, 23 then 22stack imbalance in
> .Internal, 22 then 21
> stack imbalance in if, 16 then 15
> stack imbalance in <-, 14 then 13
> stack imbalance in {, 12 then 11
> stack imbalance in internal type.convert, 22 then 21stack imbalance in
> .Internal, 21 then 20
> stack imbalance in if, 15 then 14
> stack imbalance in <-, 13 then 12
> stack imbalance in {, 11 then 10
> stack imbalance in internal type.convert, 21 then 20stack imbalance in
> .Internal, 20 then 19
> stack imbalance in if, 14 then 13
> stack imbalance in <-, 12 then 11
> stack imbalance in {, 10 then 9
> stack imbalance in for, 8 then 2
> stack imbalance in {, 6 then 0
> Error in read.table("t.txt", header = T, row.names = 1, as.is = T) :
> 	unprotect(): stack imbalance
>
> Information to my R
> version
>          _
> platform sparc-sun-solaris2.8
> arch     sparc
> os       solaris2.8
> system   sparc, solaris2.8
> status
> major    1
> minor    4.0
> year     2001
> month    12
> day      19
> language R
>
> thanks for your help
>
> joerg maeder
>
> --
>     Joerg Maeder             IACETH              INSTITUTE
>    PhD Student                              FOR ATMOSPHERIC
>   Phone: +41 1 633 36 25                 AND CLIMATE SCIENCE
>  Fax: +41 1 633 10 58                  ETH ZÜRICH Switzerland
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> 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
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

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



More information about the R-help mailing list