Testing Infrastructure for Broom Model Generics
Determine acceptable names for augment output
Get copies of a dataset with various rowname behaviors
Check that tidying methods use allowed argument names
Check that augment behavior is consistent for dataframes and tibbles
Check an augment method
Check that newdata argument has higher precedence than data argument
Check an augment method when no data or newdata is passed
Check that tibble has expected dimensions.
Check the output of a glance method
Check the output of an augment method
Check the output of a tidying method
Check the output of a tidy method
Check whether or not a data-frame-like object has rownames
modeltests: Testing Infrastructure for Broom Model Generics
Provides a number of testthat tests that can be used to verify that tidy(), glance() and augment() methods meet consistent specifications. This allows methods for the same generic to be spread across multiple packages, since all of those packages can make the same guarantees to users about returned objects.
Useful links