cmdstanr icon indicating copy to clipboard operation
cmdstanr copied to clipboard

Turn off "Compiling additional model methods..." message when calling `init_model_methods`

Open ben18785 opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. I am creating a package that repeatedly calls init_model_methods (each time I use a different dataset with my Stan model) to give access to log_prob. Each time it does so, it outputs

Compiling additional model methods...

to the console.

Describe the solution you'd like I'd suggest either removing this informative message or allowing users to do so.

Describe alternatives you've considered I could capture the output in my package and then remove it from users' view, but that feels messy.

ben18785 avatar Jan 31 '24 21:01 ben18785

Maybe this can be handled as part of https://github.com/stan-dev/cmdstanr/pull/894

jgabry avatar Jan 31 '24 21:01 jgabry