rstan and brms cause r and rstudio session abort. Even re-installation of rstan and brms cause the error.
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 rstan and brms that cause r 4.2.0
and rstudio session abort. Bug reported here:
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"))