with_warnings function

Captures and suppresses (still to find out why) warnings of an expression

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)

Arguments

  • expr: An expression, such as the sequence of code used by rptR to calculate bootstrap or permutation estimates

Returns

List of warnings.

  • Maintainer: Martin A. Stoffel
  • License: GPL (>= 2)
  • Last published: 2024-03-04