cannot open URL 'https://cran.rstudio.com/src/contrib/PACKAGES

What is the solution for this error. I am unable to install tidyverse

Guide me experts I am new
This is the problem installing tidyverse

install.packages("tidyverse", dependencies=TRUE)
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'
Installing package into ‘C:/Users/Generous/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
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 ‘tidyverse’ is not available (for R version 3.6.0)

R is not being able to to connect to the repository, Is your internet connection behind a proxy server or firewall? That is usually the case when you are at work or school.

1 Like

nope. no any firewall or proxy
still getting the same error both at my office PC and at home

Well, maybe you are experiencing some sort of regional blocking for that IP because I can reach the RStudio CRAN repository without a problem.


You can try selecting some other repository closer to your region

i can install tidyverse from r console and access it from rstudio?
why not to install tidyverse directly from rstudio?

You should be able to do so. Open the "Packages Tab" and then click on "install." You should be shown two choices one for repository which ordinarily you leave alone and below that "Packages." Type "tidyverse" into the box and click install. You might need to run down some dependencies first if the installation throws and error.

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