rstanrstanbrms

rstan and brms cause R and RStudio session abort


and cause and session abort. Even re-installation of and cause the error.

enter image description here

enter image description here

sessionInfo()
R version 4.2.0 (2022-04-22 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22000)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.utf8 
[2] LC_CTYPE=English_United States.utf8   
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.utf8    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods  
[7] base     

loaded via a namespace (and not attached):
[1] compiler_4.2.0 tools_4.2.0    pacman_0.5.1 

Edited

It is a bug in and that cause 4.2.0 and session abort. Bug reported here:

rstan issues

brms issues


Solution

  • Thanks to @bschneidr for providing solution here. Reinstalling rstan along with its some dependencies as given below works for me.

    install.packages(c("BH", "StanHeaders", "Rcpp", "RcppEigen", "RcppParallel", "inline", "loo", "pkgbuild", "rstan"))