In case of RStudio repositorium fails

> install.packages(c(“maps”, “mapproj”))
Warning in install.packages :
cannot open: HTTP status was ‘404 Not Found’
Warning in install.packages :
cannot open: HTTP status was ‘404 Not Found’
Warning in install.packages :
unable to access index for repository http://mirrors.webhostinggeeks.com/cran/bin/macosx/contrib/3.1
Warning in install.packages :
cannot open: HTTP status was ‘404 Not Found’
Warning in install.packages :
cannot open: HTTP status was ‘404 Not Found’
Warning in install.packages :
unable to access index for repository http://mirrors.webhostinggeeks.com/cran/bin/macosx/contrib/3.1
Warning in install.packages :
packages ‘maps’, ‘mapproj’ are not available (for R version 3.1.1)
> options(repos = c(CRAN = “http://cran.rstudio.com”))
> install.packages(c(“maps”, “mapproj”))
trying URL ‘http://cran.rstudio.com/bin/macosx/contrib/3.1/maps_2.3-7.tgz’
Content type ‘application/x-gzip’ length 2061757 bytes (2.0 Mb)
opened URL
==================================================
downloaded 2.0 Mb

trying URL ‘http://cran.rstudio.com/bin/macosx/contrib/3.1/mapproj_1.2-2.tgz’
Content type ‘application/x-gzip’ length 68904 bytes (67 Kb)
opened URL
==================================================
downloaded 67 Kb

The downloaded binary packages are in
/var/folders/vm/5pggdh2x3_s_l6z55brtql3h0000gn/T//Rtmpty6Yxo/downloaded_packages

Posted in R