Unable to install pkgs from CRAN

Error Information:

Warning in install.packages :
unable to access index for repository 'cran RStudio website'
cannot open URL http://cran.rstudio.com/src/contrib/PACKAGES

And I tried to run as administrator but it still didn't work.

System Information:

  • RStudio Edition: Desktop
  • RStudio Version: 1.2.1335
  • OS Version: win10
  • R Version: 3.6.2


  • RStudio diagnostics report:
  • Your sessionInfo():
  • RStudio crash report:
  • RStudio application log files:

From Troubleshooting Guide: Using RStudio

This seems like a connectivity issue, R is not being able to connect to the CRAN repository you have selected, these are some things to try.

  • Choose a different CRAN repository, RStudios repository is a good choice (http://cran.rstudio.com/) or you could choose one that is geographically closer to you.
  • Disable secure download setting.
  • Check if your internet connection has traffic restrictions of some kind, like a firewall, proxy server, etc. This is usually the case when you are at work or school.

Thank you for your reply. But I've already tried your method, and it didn't work.

Do you have any additional information that might be relevant? I'm afraid that without more information there is nothing else we can do for you, connectivity issues are system dependant and hardly related to the IDE.

You might have a firewall or an antivirus blocking your connection.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.