Update deprecated syntax for future rstan compatibility #23
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
integrate_ode_rk45
replaced byode_rk45
Note that the new
ode_rk45
allows for the inputs to be passed directly (instead of packing them into thetheta
,x_i
,x_r
structures), but I've only updated your syntax to work with the current structures. For more guidance on using the new ODE interfaces you can see this case study: https://mc-stan.org/users/documentation/case-studies/convert_odes.htmlMore 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!