Skip to content

Commit cdfb42b

Browse files
committed
minor
1 parent 82d2285 commit cdfb42b

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

tests/testthat/test-check_collinearity.R

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -420,12 +420,13 @@ test_that("check_collinearity, rank deficient.", {
420420
m1 <- lm(mpg ~ wt + cyl + Z, data = mtcars)
421421
m2 <- lm(mpg ~ wt + cyl, data = mtcars)
422422
expect_warning(
423-
out1 <- check_collinearity(m1),
423+
{
424+
out1 <- check_collinearity(m1)
425+
},
424426
"Model matrix is rank deficient"
425427
)
426-
expect_warning(
427-
out2 <- check_collinearity(m2),
428-
NA
429-
)
428+
expect_silent({
429+
out2 <- check_collinearity(m2)
430+
})
430431
expect_identical(out1$VIF, out2$VIF)
431432
})

0 commit comments

Comments
 (0)