Unable install package

Hi, im trying to install forecast package but i get this error. I've try some solution but it's cant hel me. Anyone ? Thankyou so much. Really need it fast.

install.packages("ggmap")
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.1
Installing package into ‘C:/Users/edu/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository http://cran.rstudio.com/bin/windows/contrib/3.1

package ‘ggmap’ is available as a source package but not as a binary

Warning in install.packages :
package ‘ggmap’ is not available (for R version 3.1.2)

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.

Also, you are using a very old version of R, this is going to bring you many installation problems, I strongly recommend you to update R to the latest version (3.6.3).

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