Learn R Programming

modeltests

modeltests is a package that exports tests for use in other packages. This allows other developers to guarantee that their tidier implementations meet the broom tidy(), glance() and augment() specifications.

Copy Link

Version

Install

install.packages('modeltests')

Monthly Downloads

1,555

Version

0.1.6

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Alex Hayes

Last Published

May 3rd, 2024

Functions in modeltests (0.1.6)

argument_glossary

Allowed argument names in tidiers
check_augment_newdata_precedence

Check that newdata argument has higher precedence than data argument
acceptable_augment_colnames

Determine acceptable names for augment output
check_augment_no_data

Check an augment method when no data or newdata is passed
check_glance_outputs

Check the output of a glance method
check_augment_function

Check an augment method
check_dims

Check that tibble has expected dimensions.
check_arguments

Check that tidying methods use allowed argument names
check_augment_data_specification

Check that augment behavior is consistent for dataframes and tibbles
check_tidy_output

Check the output of a tidy method
augment_data_helper

Get copies of a dataset with various rowname behaviors
column_glossary

Allowed column names in tidied tibbles
check_tibble

Check the output of a tidying method
check_single_augment_output

Check the output of an augment method
has_rownames

Check whether or not a data-frame-like object has rownames
modeltests-package

modeltests: Testing Infrastructure for Broom Model Generics