Skip to content

Commit d3bb65b

Browse files
committed
check for min version
1 parent 74cb53e commit d3bb65b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/methods_marginaleffects.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ model_parameters.marginaleffects <- function(model,
99
exponentiate = FALSE,
1010
verbose = TRUE,
1111
...) {
12-
insight::check_if_installed("marginaleffects")
12+
insight::check_if_installed("marginaleffects", minimum_version = "0.28.0.21")
1313

1414
# Bayesian models have posterior draws as attribute
1515
is_bayesian <- !is.null(suppressWarnings(marginaleffects::get_draws(model, "PxD")))
@@ -112,7 +112,7 @@ model_parameters.predictions <- function(model,
112112
exponentiate = FALSE,
113113
verbose = TRUE,
114114
...) {
115-
insight::check_if_installed("marginaleffects")
115+
insight::check_if_installed("marginaleffects", minimum_version = "0.28.0.21")
116116

117117
# Bayesian models have posterior draws as attribute
118118
is_bayesian <- !is.null(suppressWarnings(marginaleffects::get_draws(model, "PxD")))

0 commit comments

Comments
 (0)