Error in installing packages "forecast"

Hello,

I am trying to install the forecast package and I get the next error:

install.packages("forecast")
Warning in install.packages :
** unable to access index for repository https://cran.rstudio.com/src/contrib:**
** no fue posible abrir la URL 'https://cran.rstudio.com/src/contrib/PACKAGES'**

Well as I am new member I can only write two url per post, I will post the rest in new entries...

Could anyone help me?? Please.

Thank you in advance.

Installing package into ‘C:/Users/mvict/OneDrive/Documentos/R/win-library/4.0’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/src/contrib:

no fue posible abrir la URL 'https://cran.rstudio.com/src/contrib/PACKAGES'
Warning in install.packages :
package ‘forecast’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at

Warning in install.packages :
unable to access index for repository https://cran.rstudio.com/bin/windows/contrib/4.0:
no fue posible abrir la URL 'https://cran.rstudio.com/bin/windows/contrib/4.0/PACKAGES'

This is the rest, sorry for the mess. Hope is ok because I couldn't think in some other way.

Thank you!!

To avoid all this mess, next time post the output as formatted code (that will avoid the one link per post limitation).

About your problem, 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.

Thank you for the help.
Excuse me but could you tell me, where to find the options menu? It isn't in File, isn't it?
I will start looking there.

Furethermore I know that my antivirus is cutting some connections like in the Firewall. I had tried to install the package disconnecting the antivirus but it didn't work.

Hello! Could you tell me about where to find the options menu, please?

Under Tools > Global Options...

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.