[Rd] load.R patch suggestion

Ben Bolker bbolker at gmail.com
Thu Sep 15 11:03:26 CEST 2011

Inspired by


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

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>

More information about the R-devel mailing list