-
-
Notifications
You must be signed in to change notification settings - Fork 271
RStan Transition Periods
bgoodri edited this page Jan 6, 2016
·
9 revisions
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.
- With a webbrowser, go to https://cran.r-project.org/src/contrib/Archive/StanHeaders/ and download whatever is the version with the most recent date.
- Call
install.packages(pkgs = file.choose(), repos = NULL)and navigate to where you downloaded the previousStanHeadersin step 1.
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.
There are two ways to upgrade to the new version of rstan that circumvent the traditional CRAN-based installation mechanism.
- With a webbrowser, download http://win-builder.r-project.org/46ZTjEGxl4O9/rstan_2.9.0.zip
- Call
install.packages(pkgs = file.choose(), repos = NULL, dependencies = TRUE)and navigate to where you downloaded the newrstanin step 1.
- If you do not already have the
devtoolspackage, executeinstall.packages("devtools"). - Call
devtools::install_github("stan-dev/rstan", ref = "develop", subdir = "rstan/rstan")