Open kaitejohnson opened 1 month ago
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.
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:
compile_model
that sets the path for compiling the stan model to not be in the defaultProgram Files
location, which causes problems with model compilation because of the space. See @arranhamlet's workaround here