I am unable to install any R packages today. The issue did not happen until last week (the last time I use the command). My laptop system is a Windows 10, and I am not using any local network/proxy/work Internet, so pretty sure it is not the proxy server or firewall issue. I updated my R, restart the program and the computer, no help.
Here is the error message.
Warning in install.packages : unable to access index for repository http://cran.rstudio.com/src/contrib: cannot open URL 'http://cran.rstudio.com/src/contrib/PACKAGES'
Here are the methods I have tried from the Internet but did NOT work:
- Update the CRAN Repository for installing packages
- Uncheck the "Use secure download method for HTTP" and "Use Internet Explorer library/proxy for HTTP" options
- Run R as administrator
- Change the library to install packages
- Use the
install.packages('package_name', dependencies=TRUE, repos='http://cran.rstudio.com/')
Again, I am pretty sure there is no firewall/proxy issue, as I never had the problem until last week, using the same Internet and the same device. Does anyone have ideas? Thanks in advance for the help!