Learn R Programming

⚠️There's a newer version (0.1.8) of this package.Take me there.

modeltests

modeltests is a package that exports tests for use in other packages. Currently I'm experimenting with moving the core broom tests into modeltests. This will allow other developers to guarantee that their tidier implementations that meet the broom tidy(), glance() and augment() specifications.

Example use:

  • The dustpan package is a small demonstration of how to use modeltests and modelgenerics
  • See the test suite in broom

A detailed vignette is in progress in broom as well.

Copy Link

Version

Install

install.packages('modeltests')

Monthly Downloads

7,590

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Alex Hayes

Last Published

February 29th, 2020

Functions in modeltests (0.1.0)

acceptable_augment_colnames

Determine acceptable names for augment output
check_augment_newdata_precedence

Check that newdata argument has higher precedence than data argument
check_single_augment_output

Check the output of an augment method
check_tibble

Check the output of a tidying method
check_glance_outputs

Check the output of a glance method
check_tidy_output

Check the output of a tidy method
has_rownames

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

Allowed column names in tidied tibbles
modeltests-package

modeltests: Testing Infrastructure for Broom Model Generics
argument_glossary

Allowed argument names in tidiers
check_augment_no_data

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

Check an augment method
check_augment_data_specification

Check that augment behavior is consistent for dataframes and tibbles
check_dims

Check that tibble has expected dimensions.
augment_data_helper

Get copies of a dataset with various rowname behaviors
check_arguments

Check that tidying methods use allowed argument names