-
-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R crashes during sampling #1070
Comments
I am experiencing a similar issue, but across mac, linux (ubuntu), and windows implementations. For me, the issue appears to be that a massive amount of memory is used during once sampling is initiated, which ultimately crashes R. |
I tracked my issue back to a recent update for |
Until we have rstan 2.26 on CRAN if you update to StanHeaders 2.26 then you need to also reinstall rstan 2.21 from source |
I use rstan_2.21.8 and StanHeaders_2.26.26, but still when I run "example(stan_model, package = "rstan", run.dontrun = TRUE)" I get "R session aborted". R version 4.3.0 (2023-04-21) |
Finally this worked for me: https://discourse.mc-stan.org/t/installing-rstan/20743/2 |
I'm observing a similar issue specific to Both are using Alternatively, using
Ultimately, re-installing both |
I'm trying to install
rstan
to go through Statistical Rethinking, and when I try to verify the installation withexample(stan_model, package = "rstan", run.dontrun = TRUE)
, I get "R encountered a fatal error. The session was terminated". This occurs during the linestan_md> fit <- sampling(mod, data = list(y_mean = 0))
in the console.This happens whether I install from CRAN or from mc-stan.org. With the second, even though the site suggests I should get 2.26, the version of
rstan
that comes back frominstall.packages
is 2.21.8, the same as CRAN, so I don't know if that has something to do with it.I don't know if this is extraneous information, but I have a working installation of
CmdStan
andCmdStanR
, also required for the book. My hunch is there could be some conflict there.Here's my versions:
Intel macOS Ventura 13.3.1
RStudio 2023.03.1+446
R version 4.3.0
rstan 2.21.8
StanHeaders 2.26.25
The text was updated successfully, but these errors were encountered: