You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Installing Rtools, cmdstanr and ww-inference on my CDC VAP.
Successful install of required packages.
Running compile_model() produces the following error
INFO: Could not find files for the given pattern(s).
mingw32-make.exe: Interrupt/Exception caught (code = 0xc0000005, addr = 0x00007ffb221f746b)
Error: An error occured during compilation! See the message above for more information.
Solution
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.
Type "environment" in the Windows search bar - click on "Edit the system environment variables".
This will open a "System Properties" window on the "Advanced" tab.
Click on "Environment Variables" on the bottom right.
Click on the variable "Path" and then click edit.
Click "New" and then paste in the file path to the folder within your Rtools folder called "mingw64". I.e. C:\rtools44\mingw64.
Click okay.
After completing these steps, compile_model() was able to run successfully.
Session info
The text was updated successfully, but these errors were encountered:
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:
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
The text was updated successfully, but these errors were encountered: