Open arranhamlet opened 1 month ago
@arranhamlet Thank you for documenting this! Is this the way to do what is instructed here https://mc-stan.org/docs/cmdstan-guide/installation.html#rtools44 (Specifically: "Next, you need to add the toolchain directory to your PATH
variable"), but for make? Or basically, how did you figure this out :)
Yes, that is the expanded version of what they say to do. I didn't know how to "add the toolchain directory to your PATH variable", until I found these more helpful step-by-step instructions here:
https://www.maxmantei.com/2020/05/16/cmdstanr-windows/ https://helpdeskgeek.com/windows-10/add-windows-path-environment-variable/
Yeah that direction is not very intuitive... Hmm I am wondering if we should create a little FAQ guide to document some of these work arounds attached to this package... thoughts @dylanhmorris ? I know its just replicating solutions already on the internet somewhere, but can be helpful to have a sort of "if you get this error when doing this, try this and heres a link to the source"?
Describe the bug A rather annoying bug that appears to occur because Windows has not included the Rtools environment in its paths. I've found a solution, and flagging here in case this happens to other people who are running the package for the first time.
To Reproduce Steps to reproduce the behavior:
compile_model()
produces the following errorSolution Add new PATH to the windows environment. The issue appears to be that CmdStanR doesnt know where the mingw32-make.exe file is which is required to compile the model.
After completing these steps,
compile_model()
was able to run successfully.Session info