I am trying to install prophet in R but its giving me error and unable to install after lots of attempts.
I have installed all associated packages such as rstan, loo, BH but still it gives error.
Error as follows:
package ‘prophet’ is not available (for R version 3.5.1)
Please any help on this ..
Please find the error message which I got from Rstudio,
install.packages('prophet',repos = "https://CRAN.R-project.org/package=prophet")
Installing package into ‘Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository https://CRAN.R-project.org/package=prophet/src/contrib:
cannot open URL 'https://CRAN.R-project.org/package=prophet/src/contrib/PACKAGES'
Warning in install.packages :
package ‘prophet’ is not available (for R version 3.5.1)
Warning in install.packages :
unable to access index for repository https://CRAN.R-project.org/package=prophet/bin/windows/contrib/3.5:
cannot open URL 'https://CRAN.R-project.org/package=prophet/bin/windows/contrib/3.5/PACKAGES'
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.
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.