R 4.1.0 rstan not available for this version of R?

I updated R to 4.1.0 and am trying to install rstan from the source (install.packages(c(“StanHeaders”,“rstan”),type=“source”)

The StanHeaders install correctly, however when it starts to install rstan I get this:

Warning message: package ‘rstan,’ is not available for this version of R

I am currently running R on a mac with High Sierra 10.13.6.

Any help moving forward would be great!

That’s odd, what do you get from: sessionInfo().

Can you try installing the package using the URL directly:

install.packages("https://cran.r-project.org/src/contrib/rstan_2.21.2.tar.gz",repos = NULL,type="source")