package * is not available (for R version 3.1.1)

1,799 views
Skip to first unread message

adrie...@hotmail.com

unread,
May 4, 2015, 8:21:47 AM5/4/15
to shiny-...@googlegroups.com
Hello,
I noticed I've a recurring problem, often, when I want to install a package, it displays this :
> install.packages('leaflet')
Installing package into ‘/home/bessy/R/x86_64-pc-linux-gnu-library/3.1
(as lib is unspecified)
Warning in install.packages :
 
package leaflet is not available (for R version 3.1.1)
does someone know how resloving this problem ?

adrie...@hotmail.com

unread,
May 4, 2015, 11:17:58 AM5/4/15
to shiny-...@googlegroups.com
Maybe you need this information :

> sessionInfo()
R version
3.1.1 (2014-07-10)
Platform: x86_64-pc-linux-gnu (64-bit)

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

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

other attached packages
:
[1] shiny_0.11.1.9004

loaded via a
namespace (and not attached):
 
[1] digest_0.6.8      htmltools_0.2.6   httpuv_1.3.2      jsonlite_0.9.16   mime_0.3          R6_2.0.1        
 
[7] Rcpp_0.11.5       rstudio_0.98.1102 rstudioapi_0.2    tools_3.1.1       xtable_1.7-4  




Joe Cheng

unread,
May 4, 2015, 11:37:10 AM5/4/15
to adrie...@hotmail.com, shiny-...@googlegroups.com
The leaflet package isn't on CRAN yet. You need to use these commands to install directly from GitHub instead:

install.packages("devtools") # if necessary 
devtools::install_github("rstudio/leaflet")





--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/d50e8339-28e6-4eb2-9b1d-c4708a8b70a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

adrie...@hotmail.com

unread,
May 5, 2015, 4:01:12 AM5/5/15
to shiny-...@googlegroups.com, adrie...@hotmail.com
It doesn't work...

> install.packages("devtools") # if necessary
Installing package into ‘/home/bessy/R/x86_64-pc-linux-gnu-library/3.1
(as lib is unspecified)

also installing the dependencies
httr’, RCurl

essai de l
'URL 'http://cran.rstudio.com/src/contrib/httr_0.6.1.tar.gz'
Content type 'application/x-gzip' length 247531 bytes (241 Kb)
URL ouverte
==================================================
downloaded
241 Kb

essai de l
'URL 'http://cran.rstudio.com/src/contrib/RCurl_1.95-4.6.tar.gz'
Content type 'application/x-gzip' length 878616 bytes (858 Kb)
URL ouverte
==================================================
downloaded
858 Kb

essai de l
'URL 'http://cran.rstudio.com/src/contrib/devtools_1.7.0.tar.gz'
Content type 'application/x-gzip' length 130760 bytes (127 Kb)
URL ouverte
==================================================
downloaded
127 Kb

* installing *source* package RCurl ...
** package RCurl correctement décompressé et sommes MD5 vérifiées
checking
for curl-config... no
Cannot find curl-config
ERROR
: configuration failed for package RCurl
* removing ‘/home/bessy/R/x86_64-pc-linux-gnu-library/3.1/RCurl
Warning in install.packages :
  installation of
package RCurl had non-zero exit status
ERROR
: dependency RCurl is not available for package httr
* removing ‘/home/bessy/R/x86_64-pc-linux-gnu-library/3.1/httr
Warning in install.packages :
  installation of
package httr had non-zero exit status
ERROR
: dependencies httr’, RCurl are not available for package devtools
* removing ‘/home/bessy/R/x86_64-pc-linux-gnu-library/3.1/devtools
Warning in install.packages :
  installation of
package devtools had non-zero exit status

The downloaded source packages are in
   
‘/tmp/RtmpVF3LPt/downloaded_packages
> devtools::install_github("rstudio/leaflet")
Erreur dans loadNamespace(name) :
  aucun
package nommé devtools n'est trouvé


Joe Cheng

unread,
May 5, 2015, 4:07:13 AM5/5/15
to adrie...@hotmail.com, shiny-...@googlegroups.com
RCurl is failing to install because it relies on libcurl being installed. If you're on Ubuntu, you can do it like this:

sudo apt-get install libcurl4-openssl-dev


--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.

adrie...@hotmail.com

unread,
May 5, 2015, 4:35:24 AM5/5/15
to shiny-...@googlegroups.com, adrie...@hotmail.com
Thank you !
Reply all
Reply to author
Forward
0 new messages