Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows workaround in compile_model #213

Open
kaitejohnson opened this issue Oct 15, 2024 · 1 comment
Open

Windows workaround in compile_model #213

kaitejohnson opened this issue Oct 15, 2024 · 1 comment

Comments

@kaitejohnson
Copy link
Collaborator

kaitejohnson commented Oct 15, 2024

Goal

We might want to anticipate/circumvent issues with compiling the stan model in Windows, as a short-term fix for the Windows issues that @arranhamlet ran into. Longer term, we should probably pre-compile the model using instantiate.

Discussion:

  • Should we implement something in compile_model that sets the path for compiling the stan model to not be in the default Program Files location, which causes problems with model compilation because of the space. See @arranhamlet's workaround here
@arranhamlet
Copy link
Collaborator

arranhamlet commented Oct 15, 2024

My current workaround is to have a wrapper for the compile_model function (imaginatively called compile_model_upd) that looks for a space in the stan file path.

If it finds one, then it creates a new directory in a location that does not have a space, moves the stan files over, and points the compiler to these new files.

https://github.com/CDCgov/wastewater_WA/blob/master/R/functions/compile_model_upd.R

I am unsure how this would generalize across different work setups, I can envision running into permission issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants