cmdstanr icon indicating copy to clipboard operation
cmdstanr copied to clipboard

Interactive canonicalization

Open avehtari opened this issue 2 years ago • 1 comments

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.

avehtari avatar Sep 12 '23 12:09 avehtari

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

jgabry avatar Sep 15 '23 22:09 jgabry