[Rd] Error message library()

Milan Bouchet-Valat nalimilan at club.fr
Wed Oct 26 12:49:16 CEST 2011


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]

Regards



More information about the R-devel mailing list