Update deprecated syntax for future rstan compatibility
Now that rstan 2.26 is available on CRAN we need to update the deprecated syntax in your package's Stan models, otherwise it will fail to install with an upcoming version of RStan.
I've also updated the package structure to use the newer rstantools structure, this is needed to allow for rstantools to provide updates to Makevars{.win} files for compatibility with changes to rstan/StanHeaders
The following updates have been made:
- New array syntax
-
fabsreplaced byabs -
lba_cdfrenamed tolba_cdf_fun- Newer versions of Stan will require that functions ending in
_cdfuse the conditional|notation, but the currentrstanhas a bug and does not recognise it as valid. So by renaming we can satisfy both versions and easily revert the naming later
- Newer versions of Stan will require that functions ending in
More information about the deprecated and removed syntax in Stan can be found here:
- https://mc-stan.org/docs/functions-reference/deprecated-functions.html
- https://mc-stan.org/docs/functions-reference/removed-functions.html
If you could merge and submit to CRAN soon, it would be greatly appreciated.
Let me know if you have any questions about these changes.
Thanks!
@CCS-Lab would it be possible to push these changes to CRAN soon? Otherwise your package will break with the next rstan version