rstan 和 brms 导致 R 和 RStudio 会话中止

rstan and brms cause R and RStudio session abort

and cause and session abort. Even re-installation of and 导致错误。

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 

已编辑

这是 and that cause 4.2.0 and 会话中止中的错误。此处报告错误:

rstan issues

brms issues

感谢@bschneidr 提供解决方案here。重新安装 rstan 及其下面给出的一些依赖项对我有用。

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