Unable to install packages on R studio version 3.4.4

Hello, I am unable to install any packages on R studio. I also tried installing the zip files but in vain. I would appreciate any help. This is the error message

install.packages("ggplot2")
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib:
cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
Warning in install.packages :
package ‘ggplot2’ is not available (for R version 3.4.4)

Happening with me. I cant install and load them..

Does your internet connection work?

Are you able to load https://cran.rstudio.com/src/contrib in a web browser? Are there any firewalls or other internet filtering in place that could be blocking your connection to that address, or causing it to take a very long time to load? (it should load in a web browser in a few seconds or less, even over a relatively slow connection).

1 Like

This StackOverflow answer collects a range of things to try when facing this problem:

link shamelessly stolen from @EconomiCurtis's post in a similar thread:

Tray this