Closed dfalster closed 9 years ago
First, check the stan docs as this is nontrivial; there may be some controlling options.
The compiler bits are hard because they're done by the system() calls. I don't know a good way of intercepting these unless you have access to the actual call.
capture.output
captures output from cat
suppressMessages
suppresses output from message
, but you can reimplement to capture them.
See testthat:::evaluate_promise
for the most complete capturing code I've seen.
When calling stan there is a lot of noise, first from the compiler then "Informational Messages" from stan (issues with sampling, we expect some in early stage but if these persist can suggest poor model). Can we capture these somehow?
@richfitz ideas?
Example output