From 8dd96ed05e00b2ed6ad8b016854881921849bb7c Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 3 Dec 2024 12:13:22 +0100 Subject: [PATCH] fix --- tests/testthat/test-printing.R | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/testthat/test-printing.R b/tests/testthat/test-printing.R index 697a4ca9d..fc9192061 100644 --- a/tests/testthat/test-printing.R +++ b/tests/testthat/test-printing.R @@ -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))) + }) +)