[Rd] Error message library()

Hadley Wickham hadley at rice.edu
Wed Oct 26 22:06:32 CEST 2011


> Please, no! We don't want to enter the realm of the computer assuming it knows what you want to do (which is becoming too common nowadays, unfortunately, making the interaction more and more annoying). For some users this error simply means that they mistyped the package name, so fetching CRAN repos on that behalf ranges somewhere between overkill and stupidity. If the user can't type install.packages() then I am certainly not confident that the user can use R for any reasonable data analysis.

In that case, maybe a better message should be:

> library(xyz)
Error in library(xyz) : there is no package called 'xyz'.
Are you sure you are smart enough to use R?

;)

Hadley

-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/



More information about the R-devel mailing list