check_single_augment_output {modeltests}R Documentation

Check the output of an augment method

Description

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

Test when strict = FALSE:

Additional tests when strict = TRUE:

Usage

check_single_augment_output(au, passed_data, model = NULL, strict = TRUE)

Arguments

au

Output from a call to augment().

passed_data

Whichever of data or newdata was passed to augment. Should be a data frame or tibble.

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.


[Package modeltests version 0.1.6 Index]