Skip to contents

This is a utility function that attempts to evaluate a call to mmrm managing any warnings or errors that are thrown. In particular this function attempts to catch any warnings or errors and instead of surfacing them it will simply add an additional element failed with a value of TRUE. This allows for multiple calls to be made without the program exiting.

Usage

eval_mmrm(expr)

Arguments

expr

An expression to be evaluated. Should be a call to mmrm::mmrm().

Details

This function was originally developed for use with glmmTMB which needed more hand-holding and dropping of false-positive warnings. It is not as important now but is kept around encase we need to catch false-positive warnings again in the future.

See also

Examples

if (FALSE) { # \dontrun{
eval_mmrm({
    mmrm::mmrm(formula, data)
})
} # }