Captures and suppresses (still to find out why) warnings of an expression
This function is used within partR2 to capture lme4 model fitting warnings in the bootstrap and permutation procedures.
with_warnings(expr)
expr
: An expression, such as the sequence of code used by rptR to calculate bootstrap or permutation estimatesList of warnings.