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)

Arguments

fit

The fit returned by SBC_fit

fit_output

a character string capturing what the backend wrote to stdout

fit_messages

a character vector of messages the backend raised

fit_warnings

a character vector of warnings the backend raised

Value

an single row data.frame that includes diagnostics or NULL, if no diagnostics available.