stan-dev / cmdstanr

CmdStanR: the R interface to CmdStan
https://mc-stan.org/cmdstanr/
Other
139 stars 61 forks source link

Interactive canonicalization #849

Open avehtari opened 10 months ago

avehtari commented 10 months ago

Currently cmdstan_model() outputs deprecation warning or syntax error and recommends running stanc, which is a completely foreign thing for R users. Improve the message to recommend using $format(..., canonicalize = TRUE, overwrite_file = TRUE).

Also if the session is run interactively, ask the user whether they would like to do canonicalization right away [Y/n], and then run $format(..., canonicalize = TRUE, overwrite_file = TRUE)

Also provide instructions how to make conversion for a larger number of Stan code files.

jgabry commented 9 months ago

I changed the name of this issue now that we have a better message in #852