Error message while clicking the install option under Package Tab

package-installation

#1

Hi All,

I am getting the following error message while clicking the "Install" option under "Package" tab.

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

So please help me out in fixing the problem.

Thanks
Ram


#2

It looks like you have your CRAN repo option set a little bit oddly, with http://cran.rstudio.com/src/constrib where you should have https://cran.rstudio.com/.

Try adding the following to your .Rprofile and restarting RStudio, and see what happens:

.First <- function() {
  options(
    repos = c(CRAN = "https://cran.rstudio.com/")
    )

}

#3

Alternately, this could be the problem:


#4

Hi Mara,

I having been woking with Rstudio environment for past 3 months and I have installed packages like ggplot2, hexbin, dplyr, hflights and so on in my system....

But I am facing this issue only for the last 3 days....

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

I didn't change any of my system configuration before it stopped installing the packages.

Thanks
Ram


#5

Are you trying to install a specific package?