Re: [R] R errors when trying to read a file

2009-05-11 Thread Prof Brian Ripley
On Mon, 11 May 2009, Dennis Fisher wrote: Colleagues, I have encountered a problem in version 2.9 of R, running in both Vista and OS X. My code is quite lengthy but the critical line is: if (file.exists(FILENAME)) readLines(FILENAME)) This triggers the error: Error in f

[R] R errors when trying to read a file

2009-05-11 Thread Dennis Fisher
Colleagues, I have encountered a problem in version 2.9 of R, running in both Vista and OS X. My code is quite lengthy but the critical line is: if (file.exists(FILENAME)) readLines(FILENAME)) This triggers the error: Error in file(con, "r") : cannot open the connection