check_tibble {modeltests} | R Documentation |
Check the output of a tidying method
Description
Call this function to perform tests. If a tests fails, an informative error will be thrown. Otherwise silent.
Tests when strict = FALSE
:
-
output
is a tibble.
Additional tests when strict = TRUE
:
-
columns
are listed in the column_glossary.
Usage
check_tibble(output, method, columns = colnames(output), strict = TRUE)
Arguments
output |
|
method |
One of |
columns |
The names of the columns in the output data frame. Defaults
to the column names of |
strict |
Logical indicating whether the strict version of tests should be used. Defaults
to |
Details
Do not call directly. Helper function used by check_tidy_output()
,
check_glance_outputs()
and check_augment_function()
.
Value
An invisible NULL
. This function should be called for side effects, not return values.