unable to access index for repository https://cran.rstudio.com/src/contrib:

I am trying to install packages in Rstudio.

install.packages('rattle')

but this error came:
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/pranto7/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :

what can I do?

Are you connected to internet ? Do you have an internet proxy you need to configure to pass through to access outside website ?
This error usually happens when cran website can’t be reached from the calling environment.

the problem is solved usin CRAN mirror
just used the command
chooseCRANmirror()
and select different mirror then install again the packages.
thanks for your response.

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