check_glance_outputs: Check the output of a glance method

View source: R/check_glance_outputs.R

check_glance_outputsR Documentation

Check the output of a glance method

Description

Call this function to perform tests. If a tests fails, an informative error will be thrown. Otherwise silent.

Tests when strict = FALSE:

  • Each item passed to ... passes check_tibble()

  • Each item passed to ... has exactly 1 row.

Additional tests when strict = TRUE:

  • Column names and order agree across all elements of ....

Usage

check_glance_outputs(..., strict = TRUE)

Arguments

...

Outputs returned from calls to (the same) glance method.

strict

Logical indicating whether the strict version of tests should be used. Defaults to TRUE.

Value

An invisible NULL. This function should be called for side effects, not return values.

See Also

check_tibble()


alexpghayes/modeltests documentation built on March 7, 2024, 11 p.m.