From bbolker at gmail.com  Thu Sep 15 11:03:26 2011
From: bbolker at gmail.com (Ben Bolker)
Date: Thu, 15 Sep 2011 11:03:26 +0200
Subject: [Rd] load.R patch suggestion
Message-ID: <4E71BF5E.20908@gmail.com>


Inspired by

http://stackoverflow.com/questions/7487778/could-you-tell-me-what-this-error-means

I wrote the following very small (one-line) patch which returns an
*informative* error message when R tries to load a zero-byte file rather
than

Error in if (!grepl("RD[AX]2\n", magic)) { : argument is of length zero

  I would guess that error messages with the word "magic" in them would
be disturbing to new users, who are probably worried already that R is
magic ...

  Ben Bolker

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: load.R.txt
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20110915/8bfee80d/attachment.txt>


[Rd] load.R patch suggestion
Ben Bolker