Error running rethinking models (ulam)


I’m unable to get models to run using the rethinking package (ulam function). Weirdly, brms and using rstan directly both works without issue. However, if I try to fit even a very simple model in rethinking, I get this error:

Warning: package ‘digest’ was built under R version 4.3.2Compiling Stan program...
INFO: Could not find files for the given pattern(s).

rocess_begin: CreateProcess(C:\Users\user\AppData\Local\Temp\make5960-1.bat, C:\Users\user\AppData\Local\Temp\make5960-1.bat, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make[1]: *** [../tbb_2020.3/build/ version_string.ver] Error 2

mingw32-make: *** [stan/lib/stan_math/make/libraries:173: stan/lib/stan_math/lib/tbb/tbbmalloc.def] Error 2

I’ve tried reinstalling rethinking, but that didn’t fix the issue. Any advice would be appreciated.


Operating System: Windows 11, R version 4.3.0.
Interface Version: The most recent rethinking installation given on: devtools::install_github(“rmcelreath/rethinking”)