with_warnings: Captures and suppresses (still to find out why) warnings of...

View source: R/utils.R

with_warningsR Documentation

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

Description

This function is used within partR2 to capture lme4 model fitting warnings in the bootstrap and permutation procedures.

Usage

with_warnings(expr)

Arguments

expr

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

Value

List of warnings.


mastoffel/partR2 documentation built on March 9, 2024, 1:16 p.m.