Error message when installing new packages

Screenshot 2022-03-07 145921 (1)
I get this error message in the picture when I try to install new packages. The picture is attached to show the error message. Edit: downloaded Rtools to the PC as the error message said, didn't fix it.

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. The second solution fixed it.

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.