From bbolker at gmail.com  Sun Nov  7 23:04:12 2010
From: bbolker at gmail.com (Ben Bolker)
Date: Sun, 7 Nov 2010 22:04:12 +0000 (UTC)
Subject: [Rd] Bug in read.table?
References: <4CD1674E.6070807@yorku.ca> <002701cb7b65$5a516c30$0ef44490$@ca>
	<4CD1A6BE.3020801@yorku.ca>
	<1941.78.147.225.236.1288992147.squirrel@paleo.ija.csic.es>
	<4CD6D121.1020402@acm.org>
	<2145.78.147.236.204.1289166988.squirrel@paleo.ija.csic.es>
Message-ID: <loom.20101107T225942-16@post.gmane.org>

 <jgarcia <at> ija.csic.es> writes:

> 
> Thanks. Yes, quote="" solves the problem.
> 
> I would never say, however, from the documentations, that this was causing
> the duplicate records. Rather, I would have expected some kind of
> warning/error message.
> 
> And, yes, I knew that, through duplicate(), R solves gracefully this
> specific problem. Just thought this could be of interests for R devel.
> 

  A bit of a meta- point here: there may indeed be a bug here
(it's the kind of obscure "corner case" that someone may not have
tested), but it's unlikely to get noted as such and fixed unless you
can come up with a clear analysis of what is happening and how the
misinterpretation of quote characters is leading to duplication of
records. (You, or someone else -- recognizing that this may be beyond
your skill level.  It might be that 'just' very careful thought
and analysis of the behavior described in the documentation would
explain this, or one might have to dig through source code in R or C.)
Problems with unescaped/unrecognized quote characters are very
common.

 Otherwise, this will likely be dismissed as a ("doctor, it hurts
when I do this"; "well then, don't do that!") sort of situation.

  Ben Bolker



[Rd] Bug in read.table?
Ben Bolker