[R] [CI] use lintr 3.1.0 (#9456)

This commit is contained in:
James Lamb
2023-08-10 04:49:16 -05:00
committed by GitHub
parent 1caa93221a
commit 4359356d46
5 changed files with 16 additions and 8 deletions

View File

@@ -189,7 +189,7 @@ test_that("SHAPs sum to predictions, with or without DART", {
tol <- 1e-5
expect_equal(rowSums(shap), pred, tol = tol)
expect_equal(apply(shapi, 1, sum), pred, tol = tol)
expect_equal(rowSums(shapi), pred, tol = tol)
for (i in seq_len(nrow(d)))
for (f in list(rowSums, colSums))
expect_equal(f(shapi[i, , ]), shap[i, ], tol = tol)