Skip to content

Add model$format() #624

@rok-cesnovar

Description

@rok-cesnovar

Add

model$format(
   overwrite_file = FALSE,
   canonicalize = FALSE, # or list() with 'deprecations', 'parentheses', 'braces', 'includes'
   backup = TRUE
)

which by default prints the formatted file but can also overwrite the model and back it up before formatting. It can also utilize the canonicalizer. See stan-dev/cmdstanpy#539 for the cmdstanpy implementation

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions