Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Dec 3, 2024
1 parent 0391cbc commit 8dd96ed
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/testthat/test-printing.R
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,11 @@ withr::with_options(
})
)

test_that("print model with multiple components", {
skip_if_not_installed("mgcv")
m <- mgcv::gam(vs ~ s(mpg), data = mtcars, family = "binomial")
expect_snapshot(print(model_parameters(m)))
})
withr::with_options(
list(parameters_warning_exponentiate = TRUE),
test_that("print model with multiple components", {
skip_if_not_installed("mgcv")
m <- mgcv::gam(vs ~ s(mpg), data = mtcars, family = "binomial")
expect_snapshot(print(model_parameters(m)))
})
)

0 comments on commit 8dd96ed

Please sign in to comment.