# Is rstan still alive?

**URL:** <https://discourse.mc-stan.org/t/is-rstan-still-alive/31799>\
**Category:** RStan\
**Created:** [June 20, 2023, 8:09am UTC](https://discourse.mc-stan.org/t/is-rstan-still-alive/31799 "2023-06-20T08:09:09Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![bnicenboim](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bnicenboim/32/21197_2.png) [@bnicenboim](https://discourse.mc-stan.org/u/bnicenboim)\
**Post date:** [June 20, 2023, 8:09am UTC](https://discourse.mc-stan.org/t/is-rstan-still-alive/31799/1 "2023-06-20T08:09:09Z")

</div>

Hi all,

As the title suggests, is rstan still alive?

I see that the CRAN version was updated this year, but it still uses Stan 2.21. In the past years, I used rstan from [Repository for distributing (some) stan-dev R packages | r-packages](https://mc-stan.org/r-packages/), I’m not entirely sure when it was updated for the last time, but the dev branch of the github page hasn’t been updated since 2021. In the meanwhile, Stan has moved to version 2.32.

I know that devs now recommend cmdstanr (and I have been using it as well), but we are doing the last round of revisions to our book [An Introduction to Bayesian Data Analysis for Cognitive Science](https://vasishth.github.io/bayescogsci/book/) that relies on rstan, and the question is… will rstan still exist? Or are we about to release a book that’s already outdated?

To be honest, I really hope to listen that rstan is well and a new version is ready, I’m really not looking forward to adapt the all the relevant R code, and I also don’t love that cmdstanr uses R6, since for most of our audience, it is completely unknown.

---

<div class="post-metadata">

**Author:** ![jonah](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jonah/32/200_2.png) [@jonah](https://discourse.mc-stan.org/u/jonah)\
**Post date:** [June 20, 2023, 8:16pm UTC](https://discourse.mc-stan.org/t/is-rstan-still-alive/31799/2 "2023-06-20T20:16:38Z")

</div>

@andrjohns knows more about the latest developments and the future timeline than I do, but it’s not dead. In fact there’s been a major development: @bgoodri just submitted StanHeaders 2.26 to CRAN recently (up from 2.21) and that needed to happen to make it possible to submit 2.31 soon. Then RStan would follow (it relies on StanHeaders). So there actually will be a release getting RStan up to date with CmdStan.

---

<div class="post-metadata">

**Author:** ![Charles\_Driver](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/charles_driver/32/6524_2.png) [@Charles\_Driver](https://discourse.mc-stan.org/u/Charles_Driver)\
**Post date:** [June 21, 2023, 9:08am UTC](https://discourse.mc-stan.org/t/is-rstan-still-alive/31799/3 "2023-06-21T09:08:58Z")

</div>

rstan updates have been ‘coming soon’ for years now… projects struggle, no worries, but the lack of clarity for the community is pretty disappointing… hopefully this time it’s real :)

---

<div class="post-metadata">

**Author:** ![jonah](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jonah/32/200_2.png) [@jonah](https://discourse.mc-stan.org/u/jonah)\
**Post date:** [June 21, 2023, 4:02pm UTC](https://discourse.mc-stan.org/t/is-rstan-still-alive/31799/4 "2023-06-21T16:02:29Z")

</div>

It has definitely taken much much longer than anyone would like for various reasons, but StanHeaders 2.26 was just accepted by CRAN recently ([CRAN - Package StanHeaders](https://cran.r-project.org/web/packages/StanHeaders/index.html)), so there’s actual progress on this.

---

<div class="post-metadata">

**Author:** ![robertgrant](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/robertgrant/32/21233_2.png) [@robertgrant](https://discourse.mc-stan.org/u/robertgrant)\
**Post date:** [June 22, 2023, 9:53am UTC](https://discourse.mc-stan.org/t/is-rstan-still-alive/31799/5 "2023-06-22T09:53:41Z")

</div>

As resources are limited, and working within R and Cran makes life harder than it need be, shouldn’t we back the winner (CmdStan) and gracefully retire the interfaces that are more than just a wrapper? Just thinkin’

---

<div class="post-metadata">

**Author:** ![nipnipj](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/nipnipj/32/7745_2.png) [@nipnipj](https://discourse.mc-stan.org/u/nipnipj)\
**Post date:** [June 22, 2023, 4:13pm UTC](https://discourse.mc-stan.org/t/is-rstan-still-alive/31799/6 "2023-06-22T16:13:50Z")

</div>

Please, not cmdstanr.

---

<div class="post-metadata">

**Author:** ![jonah](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jonah/32/200_2.png) [@jonah](https://discourse.mc-stan.org/u/jonah)\
**Post date:** [June 22, 2023, 5:02pm UTC](https://discourse.mc-stan.org/t/is-rstan-still-alive/31799/7 "2023-06-22T17:02:46Z")

</div>

> [@robertgrant](#):
>
> As resources are limited, and working within R and Cran makes life harder than it need be, shouldn’t we back the winner (CmdStan) and gracefully retire the interfaces that are more than just a wrapper? Just thinkin’

RStan allows us to support pre-compiled models in R packages. Packages like rstanarm can be installed as binaries from CRAN without the user needing a C++ toolchain.

---

<div class="post-metadata">

**Author:** ![robertgrant](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/robertgrant/32/21233_2.png) [@robertgrant](https://discourse.mc-stan.org/u/robertgrant)\
**Post date:** [June 22, 2023, 5:30pm UTC](https://discourse.mc-stan.org/t/is-rstan-still-alive/31799/8 "2023-06-22T17:30:35Z")

</div>

Well, this is a jolly good reason. Hadn’t thought of that. We could also share pre-compiled executables from CmdStan, although I recognise the cybersecurity implication, to put it mildly. I wonder whether could be, at least in theory, some kind of repository of pre-compiled models that users share. Priors would have to go in as “data”. Again, just thinking out loud on a warm day when my brain is possibly not running at full power.

---

<div class="post-metadata">

**Author:** ![jonah](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jonah/32/200_2.png) [@jonah](https://discourse.mc-stan.org/u/jonah)\
**Post date:** [June 22, 2023, 5:48pm UTC](https://discourse.mc-stan.org/t/is-rstan-still-alive/31799/9 "2023-06-22T17:48:00Z")

</div>

> [@robertgrant](#):
>
> I wonder whether could be, at least in theory, some kind of repository of pre-compiled models that users share.

Yeah I’ve also wondered about that. Could be useful.

---

<div class="post-metadata">

**Author:** ![spinkney](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@spinkney](https://discourse.mc-stan.org/u/spinkney)\
**Post date:** [June 22, 2023, 7:18pm UTC](https://discourse.mc-stan.org/t/is-rstan-still-alive/31799/10 "2023-06-22T19:18:19Z")

</div>

Also some IT security protocols makes require the package to be on CRAN. I know I had a job where if it wasn’t on CRAN then I couldn’t use it.

---

<div class="post-metadata">

**Author:** ![jd\_c](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jd_c/32/16759_2.png) [@jd\_c](https://discourse.mc-stan.org/u/jd_c)\
**Post date:** [June 22, 2023, 7:31pm UTC](https://discourse.mc-stan.org/t/is-rstan-still-alive/31799/11 "2023-06-22T19:31:13Z")

</div>

Agreed. For the computers that I work on, it is much easier if on CRAN. I’ve yet to be able to install cmdstan on these machines, so I use rstan for everything on them.

---

<div class="post-metadata">

**Author:** ![Charles\_Driver](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/charles_driver/32/6524_2.png) [@Charles\_Driver](https://discourse.mc-stan.org/u/Charles_Driver)\
**Post date:** [June 22, 2023, 7:32pm UTC](https://discourse.mc-stan.org/t/is-rstan-still-alive/31799/12 "2023-06-22T19:32:37Z")

</div>

CRAN can be painful but as I prep material for a summer school next week, I’m pretty thankful that I can just post a few lines of code and things will largely work for people. No chance of this once we get into compiler issues. Rstan is the only thing stopping me learning Julia ;)

---

<div class="post-metadata">

**Author:** ![jmh530](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jmh530/32/4579_2.png) [@jmh530](https://discourse.mc-stan.org/u/jmh530)\
**Post date:** [June 26, 2023, 6:42pm UTC](https://discourse.mc-stan.org/t/is-rstan-still-alive/31799/13 "2023-06-26T18:42:13Z")

</div>

One question I had about cmdstanr: when using cmdstan from the command line, you have to write things to a csv file first. It doesn’t seem like cmdstanr has that requirement (like rstan). How do they get around that?

---

<div class="post-metadata">

**Author:** ![jsocolar](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jsocolar/32/2486_2.png) [@jsocolar](https://discourse.mc-stan.org/u/jsocolar)\
**Post date:** [June 26, 2023, 7:24pm UTC](https://discourse.mc-stan.org/t/is-rstan-still-alive/31799/14 "2023-06-26T19:24:50Z")

</div>

cmdstanr writes its output to csvs (by default in an R tempdir) and then automatically reads them back into memory upon completion.

---

<div class="post-metadata">

**Author:** ![jmh530](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/jmh530/32/4579_2.png) [@jmh530](https://discourse.mc-stan.org/u/jmh530)\
**Post date:** [June 26, 2023, 10:53pm UTC](https://discourse.mc-stan.org/t/is-rstan-still-alive/31799/15 "2023-06-26T22:53:34Z")

</div>

Thanks!
