Skip to content
Prev 244604 / 398502 Next

Stricter read.table?

Stavros Macrakis <macrakis <at> alum.mit.edu> writes:
"a'b\nc'd\n"),header=FALSE,
  fill=TRUE,sep="",quote="'")
"a'b\nc'd\nf'\n'\n"),
header=FALSE,fill=TRUE
sep="",quote="'")
I dissected this behavior a bit more here

<https://stat.ethz.ch/pipermail/r-devel/2010-November/059016.html>

(it is due to an inconsistency between the way that scan() and
readLines() handle lines with unterminated quotes, IIRC)

and Martin Maechler said
<https://stat.ethz.ch/pipermail/r-devel/2010-November/059107.html>
"I think it can be defended to file as a bug, but it is tricky to pinpoint
exactly what the issue is."
   I don't know of a stricter version of read.table(), but if you had
the time and inclination to pick through the code and (i) provide a
careful definition of desired behavior and (ii) supply patches, you could
do your little bit to make R better. (If I posted a bug report would you
annotate it with a discussion of desired behavior?)