From 934c29c0018b941c9547e263b8324e3d0166172e Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 24 Sep 2024 16:04:46 +0200 Subject: [PATCH] suppress Warnings --- tests/testthat/test-pool_parameters.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testthat/test-pool_parameters.R b/tests/testthat/test-pool_parameters.R index fadb1534f..a11e86db0 100644 --- a/tests/testthat/test-pool_parameters.R +++ b/tests/testthat/test-pool_parameters.R @@ -55,7 +55,7 @@ test_that("pooled parameters, glmmTMB, components", { dat$x[sample.int(nrow(dat), 10)] <- NA dat$sd[sample.int(nrow(dat), 10)] <- NA - impdat <- mice::mice(dat, printFlag = FALSE) + impdat <- suppressWarnings(mice::mice(dat, printFlag = FALSE)) models <- lapply(1:5, function(i) { glmmTMB::glmmTMB( x ~ sd + (1 | t), @@ -112,7 +112,7 @@ test_that("pooled parameters, glmmTMB, zero-inflated", { Salamanders$cover[sample.int(nrow(Salamanders), 50)] <- NA Salamanders$mined[sample.int(nrow(Salamanders), 10)] <- NA - impdat <- mice::mice(Salamanders, printFlag = FALSE) + impdat <- suppressWarnings(mice::mice(Salamanders, printFlag = FALSE)) models <- lapply(1:5, function(i) { glmmTMB::glmmTMB( count ~ mined + cover + (1 | site),