Installing development version of RStan

Hi everyone,

I’m trying to download the development version of RStan from here: RStan Getting Started · stan-dev/rstan Wiki · GitHub

I’ve removed my old version of RStan and StanHeaders, but every time I try to download the package, I get a warning saying “unable to access index for repository” and then get re-directed to CRAN (see below), where the older version is. I’ve tried re-installing R, de-selecting the “use secure download method” option for downloading packages, and changing wifi networks but I haven’t had any luck. Does anybody have any suggestions? I’m using R 4.2.1 on macOS Mojave 10.14.3.

install.packages("rstan", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
Warning in install.packages :
  unable to access index for repository https://mc-stan.org/r-packages/src/contrib:
  cannot open URL 'https://mc-stan.org/r-packages/src/contrib/PACKAGES'

also installing the dependency ‘StanHeaders’

Warning in install.packages :
  unable to access index for repository https://mc-stan.org/r-packages/bin/macosx/contrib/4.2:
  cannot open URL 'https://mc-stan.org/r-packages/bin/macosx/contrib/4.2/PACKAGES'
trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.2/StanHeaders_2.21.0-7.tgz'
Content type 'application/x-gzip' length 1546843 bytes (1.5 MB)
==================================================
downloaded 1.5 MB

trying URL 'http://cran.rstudio.com/bin/macosx/contrib/4.2/rstan_2.21.5.tgz'
Content type 'application/x-gzip' length 24565204 bytes (23.4 MB)
==================================================
downloaded 23.4 MB

No idea what the problem is here. I just wanted to jump in and say this works for me on a Mac.

Which platform are you using? And can you maybe try it again in case our server was just down temporarily?

Online help says to unclick “use secure download”, but it looks like you already tried that (assuming you’re doing this through RStudio).

In case you just want to use Stan from R, I’d suggest installing cmdstanr rather than RStan. It’s up to date with Stan and much easier to install.

Thanks for the response! I tried for several days and also tried downloading cmdstanr (also from the mc-stan.org repository) but I couldn’t access it either (got roughly the same error message). Eventually I updated my OS to 12.5.1 and now things are working smoothly. So, I guess it must have been an issue with my OS, but I have no idea what the issue was.