diff --git a/tests/testthat/test-marginaleffects.R b/tests/testthat/test-marginaleffects.R index ae1df673f..7f8c6c741 100644 --- a/tests/testthat/test-marginaleffects.R +++ b/tests/testthat/test-marginaleffects.R @@ -1,5 +1,4 @@ -skip_if_not_installed("marginaleffects", minimum_version = "0.18.0") -skip_if_not_installed("insight", minimum_version = "0.19.9") +skip_if_not_installed("marginaleffects", minimum_version = "0.24.0") skip_if_not_installed("rstanarm") test_that("marginaleffects()", { @@ -8,7 +7,7 @@ test_that("marginaleffects()", { model <- marginaleffects::avg_slopes(x, newdata = insight::get_datagrid(x, by = "Species"), variables = "Petal.Length") out <- parameters(model) expect_identical(nrow(out), 1L) - cols <- c("Parameter", "Comparison", "Coefficient", "SE", "Statistic", "p", "S", "CI", "CI_low", "CI_high") + cols <- c("Parameter", "Coefficient", "SE", "Statistic", "p", "S", "CI", "CI_low", "CI_high") expect_true(all(cols %in% colnames(out))) out <- model_parameters(model, exponentiate = TRUE) expect_equal(out$Coefficient, 1.394, tolerance = 1e-3) diff --git a/tests/testthat/test-serp.R b/tests/testthat/test-serp.R index 3dbf04646..a09bb32df 100644 --- a/tests/testthat/test-serp.R +++ b/tests/testthat/test-serp.R @@ -1,5 +1,4 @@ skip_if_not_installed("serp") -skip_if_not_installed("insight", minimum_version = "0.20.0") skip_if_not_installed("withr") # make sure we have the correct interaction mark for tests