RStan Transition Periods - PrinceWangR/rstan GitHub Wiki
The rstan
package depends on the StanHeaders
package. When there is a new Stan release, the StanHeaders
package is uploaded to CRAN first, which may mean that it is incompatible with the version of rstan
on CRAN. During these transition periods, there are two options to obtain a working rstan
installation. You can either downgrade your StanHeaders
from archived CRAN sources or upgrade your rstan
via a non-CRAN mechanism.
StanHeaders
Downgrading install.packages("https://cran.r-project.org/src/contrib/Archive/StanHeaders/StanHeaders_2.10.0-2.tar.gz", repos=NULL)
At this point, the old version of rstan
on CRAN should work but you probably want to upgrade to the new version of rstan
when it becomes available on CRAN in a few days.
rstan
Upgrading There are two ways to upgrade to the new version of rstan
that circumvent the traditional CRAN-based installation mechanism.
Windows binary
install.packages("http://win-builder.r-project.org/s056FJOB6dWm/StanHeaders_2.11.0.zip", repos = NULL)
install.packages("http://win-builder.r-project.org/y6g7YWaKlG60/rstan_2.11.1.zip", repos = NULL, dependencies = TRUE)
From GitHub source
- If you do not already have the
devtools
package, executeinstall.packages("devtools")
. - Call
install.packages("StanHeaders", type = "source")
- Call
devtools::install_github("stan-dev/rstan", ref = "develop", subdir = "rstan/rstan", dependencies = TRUE)
rstanarm
Installing The rstanarm
package depends on StanHeaders
and rstan
. You can install it during this transition period in one of two ways:
Windows binary
install.packages("http://win-builder.r-project.org/W5WP3aXY9786/rstanarm_2.11.1.zip", repos = NULL, dependencies = TRUE)
From source
install.packages("rstanarm", repos = "https://cloud.r-project.org", type = "source", dependencies = TRUE)