I’ve recently updated to macOS Sonoma and started using {renv} when using cmdstanr started causing fatal errors and crashing RStudio (i.e., loading it using library(cmdstanr) or just making function calls using cmdstanr::).
After lots of trial and error, it appears to be an RStudio thing since I can run the same code using R directly. I’ve tried reinstalling as well as rebuilding CmdStan, not using {renv}, etc. without luck. I’m not sure if macOS Sonoma or some other change is causing the problem with RStudio and cmdstanr.
I wish I had more to share. Here are some specifics on my system.
This is cmdstanr version 0.6.1
- CmdStanR documentation and vignettes: mc-stan.org/cmdstanr
- CmdStan path: /Users/msb-mdotson23/.cmdstan/cmdstan-2.33.1
- CmdStan version: 2.33.1
R version 4.3.1 (2023-06-16) -- "Beagle Scouts"
RStudio Version: 2023.09.0+463 | Released: 2023-09-28
macOS Sonoma 14.0 (23A344)
As a bonus, I get this warning consistently:
Compiling Stan program...
ld: warning: duplicate -rpath '/Users/msb-mdotson23/.cmdstan/cmdstan-2.33.1/stan/lib/stan_math/lib/tbb' ignored