# Updated packages, brms has stopped working

**URL:** <https://discourse.mc-stan.org/t/updated-packages-brms-has-stopped-working/6404>\
**Category:** brms\
**Created:** [November 8, 2018, 3:41am UTC](https://discourse.mc-stan.org/t/updated-packages-brms-has-stopped-working/6404 "2018-11-08T03:41:49Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Lantos](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/paul_lantos/32/6105_2.png) [@Paul\_Lantos](https://discourse.mc-stan.org/u/Paul_Lantos)\
**Post date:** [November 8, 2018, 3:41am UTC](https://discourse.mc-stan.org/t/updated-packages-brms-has-stopped-working/6404/1 "2018-11-08T03:41:49Z")

</div>

Hi,  
I just updated a bunch of packages, including updating brms from 2.3.3 to 2.6. It now no longer runs correctly. If I begin to run a model I just get this and then it stops without running anything:

![image](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/0/0ef85f04f71aed46a96d1d8fe09cce70fbdb8513.png)

I don’t get any error.

---

<div class="post-metadata">

**Author:** ![bgoodri](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bgoodri/32/4451_2.png) [@bgoodri](https://discourse.mc-stan.org/u/bgoodri)\
**Post date:** [November 8, 2018, 4:02am UTC](https://discourse.mc-stan.org/t/updated-packages-brms-has-stopped-working/6404/2 "2018-11-08T04:02:37Z")

</div>

Can you try

```
library(rstan)
example(stan_model, run.dontrun = TRUE)

```

and tell us if there are more messages?

---

<div class="post-metadata">

**Author:** ![Paul\_Lantos](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/paul_lantos/32/6105_2.png) [@Paul\_Lantos](https://discourse.mc-stan.org/u/Paul_Lantos)\
**Post date:** [November 8, 2018, 1:24pm UTC](https://discourse.mc-stan.org/t/updated-packages-brms-has-stopped-working/6404/3 "2018-11-08T13:24:34Z")

</div>

> [@bgoodri](#):
>
> example(stan\_model, run.dontrun = TRUE)

Thanks, here’s what I get:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/f/f336479b9d98a3d34297bfe665a3f63d7d2c4a96.png)

---

<div class="post-metadata">

**Author:** ![Paul\_Lantos](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/paul_lantos/32/6105_2.png) [@Paul\_Lantos](https://discourse.mc-stan.org/u/Paul_Lantos)\
**Post date:** [November 8, 2018, 1:31pm UTC](https://discourse.mc-stan.org/t/updated-packages-brms-has-stopped-working/6404/4 "2018-11-08T13:31:28Z")

</div>

I’m trying to update and reinstall rstan and Stanheaders and it seems to keep failing -

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/6/69ca7e7e41d8ca2e285ae6d084f1417f468cd232.png)

---

<div class="post-metadata">

**Author:** ![Paul\_Lantos](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/paul_lantos/32/6105_2.png) [@Paul\_Lantos](https://discourse.mc-stan.org/u/Paul_Lantos)\
**Post date:** [November 8, 2018, 1:32pm UTC](https://discourse.mc-stan.org/t/updated-packages-brms-has-stopped-working/6404/5 "2018-11-08T13:32:42Z")

</div>

Installing rstan seems to remove it but not reinstall an updated version:

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/3/3132cab5a144cfac643d1b00773c6c2fa892935e.png)

---

<div class="post-metadata">

**Author:** ![bgoodri](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bgoodri/32/4451_2.png) [@bgoodri](https://discourse.mc-stan.org/u/bgoodri)\
**Post date:** [November 8, 2018, 2:31pm UTC](https://discourse.mc-stan.org/t/updated-packages-brms-has-stopped-working/6404/6 "2018-11-08T14:31:27Z")

</div>

Try

```
install.packages("https://win-builder.r-project.org/tJ1528Lvo0H3/rstan_2.18.2.zip",
                  repos = NULL)

```

to install the **rstan** binary.

---

<div class="post-metadata">

**Author:** ![Paul\_Lantos](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/paul_lantos/32/6105_2.png) [@Paul\_Lantos](https://discourse.mc-stan.org/u/Paul_Lantos)\
**Post date:** [November 8, 2018, 2:38pm UTC](https://discourse.mc-stan.org/t/updated-packages-brms-has-stopped-working/6404/7 "2018-11-08T14:38:38Z")

</div>

> [@bgoodri](#):
>
> install.packages(“[https://win-builder.r-project.org/tJ1528Lvo0H3/rstan\_2.18.2.zip](https://win-builder.r-project.org/tJ1528Lvo0H3/rstan_2.18.2.zip)”, repos = NULL)

Thanks - I did that (it worked), but now I get this error when trying to load the brms package:

Entry Point Not Found  
The procedure entry point R\_ContinueUnwind could not be located in the dynamic link library  
C:\Users\pl39\Documents\R-3.4.4\library\rstan\libs\x64\rstan.dll

---

<div class="post-metadata">

**Author:** ![bgoodri](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bgoodri/32/4451_2.png) [@bgoodri](https://discourse.mc-stan.org/u/bgoodri)\
**Post date:** [November 8, 2018, 2:49pm UTC](https://discourse.mc-stan.org/t/updated-packages-brms-has-stopped-working/6404/8 "2018-11-08T14:49:59Z")

</div>

Crap, I gave you the version for R 3.5. Restart R and then try

```
install.packages("https://win-builder.r-project.org/J1Fkw6nYyZwZ/rstan_2.18.2.zip",
                 repos = NULL)
```

---

<div class="post-metadata">

**Author:** ![Paul\_Lantos](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/paul_lantos/32/6105_2.png) [@Paul\_Lantos](https://discourse.mc-stan.org/u/Paul_Lantos)\
**Post date:** [November 8, 2018, 4:45pm UTC](https://discourse.mc-stan.org/t/updated-packages-brms-has-stopped-working/6404/9 "2018-11-08T16:45:46Z")

</div>

> [@bgoodri](#):
>
> install.packages(“[https://win-builder.r-project.org/J1Fkw6nYyZwZ/rstan\_2.18.2.zip](https://win-builder.r-project.org/J1Fkw6nYyZwZ/rstan_2.18.2.zip)”, repos = NULL)

Cool, thanks, that worked. If I upgrade to a different version of R do I have to reinstall a different version of Rstan? I don’t recall it being an issue with past installations.

---

<div class="post-metadata">

**Author:** ![bgoodri](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bgoodri/32/4451_2.png) [@bgoodri](https://discourse.mc-stan.org/u/bgoodri)\
**Post date:** [November 8, 2018, 4:47pm UTC](https://discourse.mc-stan.org/t/updated-packages-brms-has-stopped-working/6404/10 "2018-11-08T16:47:01Z")

</div>

In ordinary times, Windows will pick the binary version of the package that corresponds to the version of R that you are using.

---

<div class="post-metadata">

**Author:** ![Paul\_Lantos](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/paul_lantos/32/6105_2.png) [@Paul\_Lantos](https://discourse.mc-stan.org/u/Paul_Lantos)\
**Post date:** [November 8, 2018, 4:48pm UTC](https://discourse.mc-stan.org/t/updated-packages-brms-has-stopped-working/6404/11 "2018-11-08T16:48:19Z")

</div>

Great, thanks again for your help.

---

<div class="post-metadata">

**Author:** ![sea83](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@sea83](https://discourse.mc-stan.org/u/sea83)\
**Post date:** [November 8, 2018, 11:02pm UTC](https://discourse.mc-stan.org/t/updated-packages-brms-has-stopped-working/6404/12 "2018-11-08T23:02:51Z")

</div>

I am having the exact same issue, but when I try to load rstan after installing using the script provided in this thread I get the following error

Error: package or namespace load failed for ‘rstan’:  
package ‘rstan’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version

---

<div class="post-metadata">

**Author:** ![sea83](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@sea83](https://discourse.mc-stan.org/u/sea83)\
**Post date:** [November 8, 2018, 11:14pm UTC](https://discourse.mc-stan.org/t/updated-packages-brms-has-stopped-working/6404/13 "2018-11-08T23:14:37Z")

</div>

Never mind, I restarted R and repeated the suggested procedure and it worked.
