[Rd] Error message library()

ONKELINX, Thierry Thierry.ONKELINX at inbo.be
Wed Oct 26 11:46:43 CEST 2011

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.

Best regards,


ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek
team Biometrie & Kwaliteitszorg
Gaverstraat 4
9500 Geraardsbergen

Research Institute for Nature and Forest
team Biometrics & Quality Assurance
Gaverstraat 4
9500 Geraardsbergen

tel. + 32 54/436 185
Thierry.Onkelinx at inbo.be

To call in the statistician after the experiment is done may be no more than asking him to perform a post-mortem examination: he may be able to say what the experiment died of.
~ Sir Ronald Aylmer Fisher

The plural of anecdote is not data.
~ Roger Brinner

The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey

More information about the R-devel mailing list