Skip to content
Prev 8737 / 63424 Next

read.table bug in Mac OS X (PR#2469)

George has supplied an example file which is CR-terminated.

As far as I can see this is an error when using classic MacOS files on an 
foreign OS, and is I presume about the Darwin port of R (confirmation 
please) where the native files are LF terminated and the example file was 
CR terminated.

It's a bit of a wonder that it ever worked, but it was broken in fixing 
PR#2396.  I've added a test example and a fix that covers this and 
PR#2396, and they will be in R-patched and R-devel shortly.

It does make me wonder about the testing process: do the testers of the 
Darwin port never use classic MacOS files?  How does emacs manage to 
create CR-terminated files on a unix-based OS?  Or is this a case of using 
Carbon MacOS application with Darwin R, and that's rare?
On Fri, 17 Jan 2003 gwgilc@wm.edu wrote: