@@ -26,7 +26,7 @@ test_that("family setups work correctly", {
2626 family = poisson(),
2727 run_model = FALSE )
2828 expect_true(inherits(mod , ' mvgam_prefit' ))
29- expect_no_error(print(mod ))
29+ expect_no_error(capture_output( print(mod ) ))
3030
3131 simdat <- sim_mvgam(family = nb(),
3232 n_lv = 2 )
@@ -36,7 +36,7 @@ test_that("family setups work correctly", {
3636 family = nb(),
3737 run_model = FALSE )
3838 expect_true(inherits(mod , ' mvgam_prefit' ))
39- expect_no_error(print(mod ))
39+ expect_no_error(capture_output( print(mod ) ))
4040
4141 simdat <- sim_mvgam(family = lognormal(),
4242 trend_model = VAR())
@@ -46,7 +46,7 @@ test_that("family setups work correctly", {
4646 family = lognormal(),
4747 run_model = FALSE )
4848 expect_true(inherits(mod , ' mvgam_prefit' ))
49- expect_no_error(print(mod ))
49+ expect_no_error(capture_output( print(mod ) ))
5050
5151 simdat <- sim_mvgam(family = bernoulli(),
5252 trend_model = VAR(cor = TRUE ))
@@ -56,7 +56,7 @@ test_that("family setups work correctly", {
5656 family = bernoulli(),
5757 run_model = FALSE )
5858 expect_true(inherits(mod , ' mvgam_prefit' ))
59- expect_no_error(print(mod ))
59+ expect_no_error(capture_output( print(mod ) ))
6060
6161 simdat <- sim_mvgam(family = student_t(),
6262 trend_model = GP())
@@ -66,7 +66,7 @@ test_that("family setups work correctly", {
6666 family = student_t(),
6767 run_model = FALSE )
6868 expect_true(inherits(mod , ' mvgam_prefit' ))
69- expect_no_error(print(mod ))
69+ expect_no_error(capture_output( print(mod ) ))
7070
7171 simdat <- sim_mvgam(family = Gamma(),
7272 seasonality = ' shared' ,
@@ -77,7 +77,7 @@ test_that("family setups work correctly", {
7777 family = Gamma(),
7878 run_model = FALSE )
7979 expect_true(inherits(mod , ' mvgam_prefit' ))
80- expect_no_error(print(mod ))
80+ expect_no_error(capture_output( print(mod ) ))
8181
8282 simdat <- sim_mvgam(family = betar(),
8383 seasonality = ' hierarchical' ,
@@ -88,5 +88,5 @@ test_that("family setups work correctly", {
8888 family = betar(),
8989 run_model = FALSE )
9090 expect_true(inherits(mod , ' mvgam_prefit' ))
91- expect_no_error(print(mod ))
91+ expect_no_error(capture_output( print(mod ) ))
9292})
0 commit comments