Skip to content
Prev 19261 / 63421 Next

help with read.table() function

On Sun, 29 Jan 2006, Marc Schwartz wrote:

            
I don't see how.  The current default is
Error in read.table() : argument "file" is missing, with no default

so the only change is that the default might do something useful.

Nor do I see the change would help, as the same people would still use a 
character string for 'file' and not omit the argument.  (It seems very 
unlikely that they would read any documentation that suggested things had 
changed.)

The same issue could be made over scan(), where the current default is 
useful.
Nor I.

Note that file.choose does not protect you against file permission issues 
(actually, on a command-line Unix-alike it does nothing much useful at 
all):
Enter file name: errs.txt
Error in file(con, "r") : unable to open connection
In addition: Warning message:
cannot open file 'errs.txt', reason 'Permission denied'

but
says

NO FILE errs.txt

which is not a good idea (and I will improve).

So this would really only have any effect on GUI platforms, for people who 
read the documentation.