Dear R users,

I have just upgraded R from 2.11 to 2.12 on Ubuntu 9.04 (see more informations 
at the end) from the cran apt-get repository. One of the new things concerning 
the install.packages() function is stated here :


install.packages() and remove.packages() with lib unspecified and       multiple 
libraries in .libPaths() inform the user of the library       location used with 
a message rather than a warning.

I am in this case where .libPaths() has multiple libraries:

> .libPaths()
[1] "/home/username/R/x86_64-pc-linux-gnu-library/2.12"
[2] "/usr/local/lib/R/site-library"                    
[3] "/usr/lib/R/site-library"                          
[4] "/usr/lib/R/library"                               
[5] "/usr/lib64/R/library"  
and install.packages() gives me an error when lib is not given:

> install.packages("lattice")
Erreur dans sprintf(gettext(fmt, domain = domain), ...) : 
  format incorrect '%
(ca' ; utilisez le format %s pour les objets caractères

> install.packages("toto")
Erreur dans sprintf(gettext(fmt, domain = domain), ...) : 
  format incorrect '%
(ca' ; utilisez le format %s pour les objets caractères


 whatever package name is given.

For the time being, I am using :

> install.packages("lattice", "")

and it works fine.

Is this the new way of using the install.packages() function or an error?

Best regards,

> sessionInfo()
R version 2.12.0 (2010-10-15)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=fr_FR.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=fr_FR.UTF-8        LC_COLLATE=fr_FR.UTF-8    
 [5] LC_MONETARY=C              LC_MESSAGES=fr_FR.UTF-8   
 [7] LC_PAPER=fr_FR.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=fr_FR.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] fortunes_1.4-0

username@computer:~$ uname -a
Linux computer 2.6.28-19-generic #65-Ubuntu SMP Thu Sep 16 14:24:42 UTC 2010 
x86_64 GNU/Linux
username@computer:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION="Ubuntu 9.04"


________________________________
Dr Vincent Chouraki
Assistant hospitalier universitaire
Service d'épidémiologie régional
CHRU de Lille, France


      
	[[alternative HTML version deleted]]

