Skip to content
Back to formatted view

Raw Message

Message-ID: <x2acgdu7xk.fsf@viggo.kubism.ku.dk>
Date: 2005-11-09T16:01:27Z
From: Peter Dalgaard
Subject: read.table error with R 2.2.0
In-Reply-To: <73dae3060511090707s706cf91bp80161533bbfffd03@mail.gmail.com>

Florence Combes <fcombes at gmail.com> writes:

> Dear all,
> 
> I just upgraded version of R to R 2.2.0, and I have a problem with a script
> that did not happen with my previous version.
> Here is the error :
> 
> -----------------------------------------
> > param<-read.table(file="param.dat",sep ="\t",header=TRUE,fill=TRUE,
> na.strings="NA")
> Erreur dans read.table.default(file = "param.dat", sep = "\t", header =
> TRUE, :
> 5 arguments passed to 'readTableHead' which requires 6
> -----------------------------------------
> 
> whereas all was OK before. I cannot understand what's happening.

read.table is not generic in 2.2.0 and it calls 

.Internal(readTableHead(file, nlines, comment.char,
        blank.lines.skip, quote, sep))


So where did  read.table.default() come into play? Is it picking up a
version that you yourself have modified perhaps? Or are you using some
package which redefines read.table and needs to be updated for 2.2.0?

        -p

 
> Has someone already encountered this ??
> Any help greatly appreciated,
> 
> Thanks a lot,
> 
> Florence.
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> 

-- 
   O__  ---- Peter Dalgaard             ??ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907