Skip to content

Commit

Permalink
address test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed Sep 9, 2024
1 parent 9a44b32 commit ebc0e73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test-linear_reg.R
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,11 @@ test_that('show engine', {
})

test_that('lm can handle rankdeficient predictions', {
skip_if(
paste0(R.Version()[c("major", "minor")], collapse = ".") < "4.3.0",
"R doesn't raise the rank-deficient warning in this R version"
)

data <- data.frame(
y = c(1,2,3,4),
x1 = c(1,1,2,3),
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-predict_formats.R
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ test_that('non-factor classification', {
data = hpc %>% dplyr::mutate(class = ifelse(class == "VF", 1, 0)))
)

skip_if_not_installed("glmnet")
expect_snapshot(
error = TRUE,
multinom_reg() %>%
Expand Down

0 comments on commit ebc0e73

Please sign in to comment.