Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Feb 16, 2024
1 parent 5d17099 commit 12b2b9e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: performance
Title: Assessment of Regression Models Performance
Version: 0.10.8.13
Version: 0.10.8.15
Authors@R:
c(person(given = "Daniel",
family = "Lüdecke",
Expand Down Expand Up @@ -128,6 +128,7 @@ Suggests:
patchwork,
pscl,
psych,
quantreg,
qqplotr (>= 0.0.6),
randomForest,
rempsyc,
Expand Down
8 changes: 8 additions & 0 deletions tests/testthat/test-check_model.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,11 @@ test_that("`check_model()` for invalid models", {
m1 <- lm(y ~ 1, data = dd)
expect_error(check_model(m1))
})

test_that("`check_model()` works for quantreg", {
skip_if_not_installed("quantreg")
data(engel, package = "quantreg")
qm <- quantreg::rq(foodexp ~ income, data = engel)
x <- check_model(qm, verbose = FALSE)
expect_s3_class(x, "check_model")
})

0 comments on commit 12b2b9e

Please sign in to comment.