Skip to content
Back to formatted view

Raw Message

Message-ID: <43721954.8000209@stats.uwo.ca>
Date: 2005-11-09T15:44:20Z
From: Duncan Murdoch
Subject: read.table error with R 2.2.0
In-Reply-To: <73dae3060511090707s706cf91bp80161533bbfffd03@mail.gmail.com>

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