CDCgov / ww-inference-model

An in-development R package and a Bayesian hierarchical model jointly fitting multiple "local" wastewater data streams and "global" case count data to produce nowcasts and forecasts of both observations
https://cdcgov.github.io/ww-inference-model/
Apache License 2.0
16 stars 2 forks source link

Alternative install of cmdstan using cmdstanr::* #198

Closed gvegayon closed 2 weeks ago

seabbs commented 2 weeks ago

Nice - this could be a great idea

gvegayon commented 2 weeks ago

Nice - this could be a great idea

The conda stuff did not work. Using the cmdstanr::install_cmdstan() works. It takes about 4 minutes, but I think it can be cached.

seabbs commented 2 weeks ago

FYI that is exactly the same approach that the action is taking but without any bells and whistles

gvegayon commented 2 weeks ago

This is now working thanks to @seabbs fix on the epinowcast action. Closing!

seabbs commented 2 weeks ago

If you could detail somewhere why conda didn't work that would be great as it could be a neat solution someday

gvegayon commented 1 week ago

For future reference, here is the commit with conda (which failed): https://github.com/CDCgov/ww-inference-model/blob/d15fd25249004cd27dd761f43f2383dac14a7708/.github/workflows/r-cmd-check.yaml, and here is the job that failed: https://github.com/CDCgov/ww-inference-model/actions/runs/11119048909/job/30893632894

It failed to compile the model, so I guess I missed a step in adding cmdstan to the needed path whatsoever. Note that the installation via conda was successful.