Skip to content

Commit 57a32fe

Browse files
committed
add missing skip_if_not_installed()
1 parent 60c537f commit 57a32fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/testthat/test-lightgbm.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,8 @@ test_that("tuning mtry vs mtry_prop", {
512512
})
513513

514514
test_that("lightgbm warns if user uses `param` argument in set_engine()", {
515+
skip_if_not_installed("lightgbm")
516+
515517
mod_spec <- boost_tree() |>
516518
set_engine("lightgbm", params = list(objective = "multiclassova")) |>
517519
set_mode("regression")

0 commit comments

Comments
 (0)