rstudio / packrat

Packrat is a dependency management system for R
http://rstudio.github.io/packrat/
402 stars 90 forks source link

Unable to install packages #310

Open GenieT opened 8 years ago

GenieT commented 8 years ago

When I try to install a package, I get this error. I have already tried to change the mirror and unselect "Use Internet Explorer library/proxy for HTTP", It didnt help at all. Can someone tell me what to do?

install.packages("GGally")

Warning in install.packages : InternetOpenUrl failed: '' Warning in install.packages : InternetOpenUrl failed: '' Warning in install.packages : unable to access index for repository http://cran.gis-lab.info/src/contrib: cannot open URL 'http://cran.gis-lab.info/src/contrib/PACKAGES' Warning in install.packages : InternetOpenUrl failed: '' Warning in install.packages : InternetOpenUrl failed: '' Warning in install.packages : unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/src/contrib: cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES' Installing package into ‘C:/Users/admin/Documents/R/win-library/3.3’ (as ‘lib’ is unspecified) Warning in install.packages : InternetOpenUrl failed: '' Warning in install.packages : InternetOpenUrl failed: '' Warning in install.packages : unable to access index for repository http://cran.gis-lab.info/src/contrib: cannot open URL 'http://cran.gis-lab.info/src/contrib/PACKAGES' Warning in install.packages : InternetOpenUrl failed: '' Warning in install.packages : InternetOpenUrl failed: '' Warning in install.packages : unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/src/contrib: cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES' Warning in install.packages : package ‘GGally’ is not available (for R version 3.3.1) Warning in install.packages : InternetOpenUrl failed: '' Warning in install.packages : InternetOpenUrl failed: '' Warning in install.packages : unable to access index for repository http://cran.gis-lab.info/bin/windows/contrib/3.3: cannot open URL 'http://cran.gis-lab.info/bin/windows/contrib/3.3/PACKAGES' Warning in install.packages : InternetOpenUrl failed: '' Warning in install.packages : InternetOpenUrl failed: '' Warning in install.packages : unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.3: cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.3/PACKAGES'

When I try to install from Tools:

Warning: unable to access index for repository http://cran.gis-lab.info/src/contrib: cannot open URL 'http://cran.gis-lab.info/src/contrib/PACKAGES' Warning: unable to access index for repository http://www.stats.ox.ac.uk/pub/RWin/src/contrib: cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES'

Galunay commented 7 years ago

Hello, I have had the same problem. Try to use this code chunk: install.packages("GGally", repos="https://cran.rstudio.com/")