I am wondering how to ensure that CRAN-packages relying on rstan are ready for new versions of rstan appearing on CRAN in the future.
Currently, rstan on CRAN is at 2.21.8. If I compile the models in my package using CmdStan 2.32.0, I get the following warning: “Declaration of arrays by placing brackets after a variable name is deprecated and will be removed in Stan 2.33.0. Instead use the array keyword before the type. This can be changed automatically using the auto-format flag to stanc”.
The skeleton for my package was created using rstantools. Is there an easy way to turn on auto-format, and will this ensure compatibility with future rstan versions on CRAN (until I switch to the new declaration format)?