From simon.urbanek at r-project.org  Wed Oct 26 18:34:54 2011
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Wed, 26 Oct 2011 12:34:54 -0400
Subject: [Rd] Error message library()
In-Reply-To: <1319626156.18216.15.camel@milan>
References: <AA818EAD2576BC488B4F623941DA74275556099D@inbomail.inbo.be>
	<1319626156.18216.15.camel@milan>
Message-ID: <1EE3E368-AEF7-450C-9331-234A7CBEAE4E@r-project.org>


On Oct 26, 2011, at 6:49 AM, Milan Bouchet-Valat wrote:

> Le mercredi 26 octobre 2011 ? 09:46 +0000, ONKELINX, Thierry a ?crit :
>> Dear all,
>> 
>> When one tries to load a non-installed package you get the error: 
>> 
>> Error in library(xyz) : there is no package called 'xyz'
>> 
>> I noticed on several occasions that this puzzles beginners. Therefore
>> I suggest to change the error description in:
>> 
>> Error in library(xyz) : there is no package called 'xyz' installed on
>> this machine. Check the name of the package or use
>> install.packages("xyz") to install it.
> Couldn't R even directly ask for installing if it exists on CRAN? Like:
> Error in library(xyz) : package 'xyz' is not installed on this machine.
> Do you want to install it? [Y/n]
> 

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.

Cheers,
Simon



[Rd] Error message library()
Simon Urbanek