When I tried to load cmdstanr and use “cmdstanr::rebuild_cmdstan()” to instruct it to build the cmdstan source directory that I’ve downloaded, I encountered the following error:
rm: cannot remove 'src/cmdstan/main.d': Invalid request code rm: cannot remove 'stan//src/stan/model/model_header.d': Invalid request code mingw32-make: *** [makefile:309: clean-deps] Error 1
and when I tried to run a model with cmdstanr, I got
Compiling Stan program... rm : cannot remove 'C:/Users/117458~1/AppData/Local/Temp/RtmpmK8qFY/model-ca4485d6a4a.o': Invalid request code mingw32-make: *** [make/program:60: C:\Users\117458~1\AppData\Local\Temp\RtmpmK8qFY\model-ca4485d6a4a.exe] Error 1 Error: An error occured during compilation! See the message above for more information.
when I tried to install rtool on the default path, it keeps warning me to delete the file “db.lck“, I delete it manually, but it automatically recovered. So I install rtools on data disk.
any help would be greatly appreciated!