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. Has someone already encountered this ?? Any help greatly appreciated, Thanks a lot, Florence. [[alternative HTML version deleted]]
On 11/9/2005 10:07 AM, Florence Combes wrote:> 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. > > Has someone already encountered this ?? > Any help greatly appreciated,There is no "read.table.default" in standard R 2.2.0, so it appears that you have installed a replacement for read.table, and it no longer works. If you type getAnywhere("read.table")$where and getAnywhere("read.table.default")$where you are likely to see where those functions came from. (I see > getAnywhere("read.table")$where [1] "package:base" "namespace:base" > getAnywhere("read.table.default")$where character(0) indicating that read.table comes from the base package, and read.table.default doesn't exist. Duncan Murdoch
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