ImperialCollegeLondon / epidemia

epidemia package
https://imperialcollegelondon.github.io/epidemia/index.html
47 stars 15 forks source link

Future RStan Compatibility #66

Closed andrjohns closed 1 year ago

andrjohns commented 2 years ago

This PR makes some small changes needed for your package to be compatible with the upcoming RStan 2.26. The src folder and stanmodels.R file have been deleted, as this is now fully handled by the rstantools package.

I've also made a small modification to the gen_eobs.stan code, so that the argument to the linkinv function is first assigned to a vector before being passed to linkinv. This is because there are some transition issues when using user-defined functions with the new StanHeaders but the older rstan. This can be reverted once the new versions of both are on CRAN.

Let me know if you had any questions, thanks!