The diagnostics object has to be a data.frame
but may
inherit additional classes - in particular it may be useful
for the returning object to implement get_diagnostic_messages()
.
SBC_fit_to_diagnostics(fit, fit_output, fit_messages, fit_warnings)
The fit returned by SBC_fit
a character string capturing what the backend wrote to stdout
a character vector of messages the backend raised
a character vector of warnings the backend raised
an single row data.frame
that includes diagnostics or NULL, if no diagnostics available.