Skip to content

Interactive canonicalization #849

Open
@avehtari

Description

@avehtari

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.

Metadata

Metadata

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions