Re: [Rd] Error message library()

2011-10-27 Thread Roebuck,Paul L
On 10/26/11 5:49 AM, Milan Bouchet-Valat nalimi...@club.fr wrote:

 Le mercredi 26 octobre 2011 à 09:46 +, ONKELINX, Thierry a écrit :

 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]

I'd agree the message should be reworded, but prompting is overkill
for normal users.

Error in library(xyz) : package 'xyz' is not installed.

Nonetheless, Kevin Wright's function is interesting.

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Error message library()

2011-10-27 Thread Gabor Grothendieck
On Wed, Oct 26, 2011 at 5:46 AM, ONKELINX, Thierry
thierry.onkel...@inbo.be wrote:
 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,


Perhaps it could report where it looked and couldn't find it:

There is no package called 'xyz' in C:/R/win-library/2.13 and
C:/R/R-2.13.2/library




-- 
Statistics  Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Error message library()

2011-10-27 Thread Milan Bouchet-Valat
Le jeudi 27 octobre 2011 à 13:45 -0400, Gabor Grothendieck a écrit :
 Perhaps it could report where it looked and couldn't find it:
 
 There is no package called 'xyz' in C:/R/win-library/2.13 and
 C:/R/R-2.13.2/library
I think it would be even more scary for beginners, and advanced users
probably know how to find their library path.


Regards

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Error message library()

2011-10-27 Thread Gabor Grothendieck
On Thu, Oct 27, 2011 at 2:10 PM, Milan Bouchet-Valat nalimi...@club.fr wrote:
 Le jeudi 27 octobre 2011 à 13:45 -0400, Gabor Grothendieck a écrit :
 Perhaps it could report where it looked and couldn't find it:

 There is no package called 'xyz' in C:/R/win-library/2.13 and
 C:/R/R-2.13.2/library
 I think it would be even more scary for beginners, and advanced users
 probably know how to find their library path.


Many beginners are advanced but just don't know R.  Its better to give
them the information they need.  With this they can discover what is
there even without knowing the relevant R commands.

-- 
Statistics  Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Error message library()

2011-10-27 Thread Timothy Bates
I agree: much nicer to say what went wrong than to say there is no package

And many people will not know what R's paths are.

Why not add in a hint about what to do, like:  try running 
install.packages(xyz) 

t


 ggrothendieck
 Many beginners are advanced but just don't know R.  Its better to give
 them the information they need.  With this they can discover what is
 there even without knowing the relevant R commands.

On Oct 27, 2011, at 7:36 PM, Gabor Grothendieck wrote:
 On Thu, Oct 27, 2011 at 2:10 PM, Milan Bouchet-Valat nalimi...@club.fr 
 wrote:
 Le jeudi 27 octobre 2011 à 13:45 -0400, Gabor Grothendieck a écrit :
 Perhaps it could report where it looked and couldn't find it:
 
 There is no package called 'xyz' in C:/R/win-library/2.13 and
 C:/R/R-2.13.2/library
 I think it would be even more scary for beginners, and advanced users
 probably know how to find their library path.

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel