[Rd] load.R patch suggestion

From: Ben Bolker <bbolker_at_gmail.com>
Date: Thu, 15 Sep 2011 11:03:26 +0200

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 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

R-devel_at_r-project.org mailing list
Received on Tue 20 Sep 2011 - 20:15:01 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 28 Sep 2011 - 11:50:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive