Warning in install.packages : unable to access index for repository http://cran.mtu.edu/src/contrib: cannot open URL 'http://cran.mtu.edu/src/contrib/PACKAGES'

I am trying to install.packages("dplyr")

I have disabled Windows Firewall.

I have disconnected from WiFi and connected to a mobile hotspot instead.

I have updated R and RStudio to the newest versions. I also downloaded the newest version of RTools. And I restarted after every install.

I have changed the mirror (but it still tries to look in cran.mtu.edu which I can't even get to online)

I have downloaded the package in tar.gz format and tried to install it locally.

Nothing is working.

I used to be able to install packages just fine.

Anyone have any ideas. I am a novice at R and this is my first time posting in here so if I'm doing it wrong, I apologize!

install.packages("dplyr")
Warning in install.packages :
unable to access index for repository http://cran.mtu.edu/src/contrib:
cannot open URL 'http://cran.mtu.edu/src/contrib/PACKAGES'
Installing package into ‘C:/Users/Andi/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)

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.

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.