-
Notifications
You must be signed in to change notification settings - Fork 33
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
Update deprecated syntax for future rstan compatibility #453
Conversation
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 0b473b3 is merged into main:
|
Thanks! Exciting to see the |
Thanks for flagging! I've opened a PR with a fix and I'll let you know when it's made it to CRAN |
As we aren't testing stan code on CRAN (just on our CI) and that is what we use That does leave on outstanding issue which is causing |
@andrjohns can you rebase to main / merge to see if the as-cran-check is fixed by #454? |
This is how benchmark results would change (along with a 95% confidence interval in relative change) if 1dc754d is merged into main:
|
CRAN checks passing so merging for CRAN submission as discussed |
* Update array syntax * CDF to LCDF
* Update array syntax * CDF to LCDF
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.
The following updates have been made:
_cdf
functions using conditional|
notation (i.e.,_cdf(y |x)
)cdf
functions, so I've updated your syntax to work on the log scale with the respective_lcdf
function. This will let your package be compatible with the current and future parser, and is also more numerically stable with extreme values (bonus!)More information about the deprecated and removed syntax in Stan can be found here:
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!