Debian Codegraph @

tests/testthat/test-leaps.R

raw
1 skip_on_cran()
2
3 skip_if_not_installed("modeltests")
4 library(modeltests)
5
6 skip_if_not_installed("leaps")
7
8 test_that("tidy.regsubsets", {
9 check_arguments(tidy.regsubsets)
10
11 all_fits <- leaps::regsubsets(hp ~ ., mtcars)
12 td <- tidy(all_fits)
13
14 # column names are essentially those for glance,
15 # also column names from training data sneak through,
16 # so strict tests will fail
17 check_tidy_output(td, strict = FALSE)
18 })