diff --git a/DESCRIPTION b/DESCRIPTION index 8f4e7ce16..d5a92b018 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: parameters Title: Processing of Model Parameters -Version: 0.22.0.3 +Version: 0.22.0.4 Authors@R: c(person(given = "Daniel", family = "Lüdecke", @@ -211,7 +211,7 @@ VignetteBuilder: knitr Encoding: UTF-8 Language: en-US -RoxygenNote: 7.3.1 +RoxygenNote: 7.3.2 Roxygen: list(markdown = TRUE) Config/testthat/edition: 3 Config/testthat/parallel: true diff --git a/NEWS.md b/NEWS.md index 4446226a1..1d86aeaa6 100644 --- a/NEWS.md +++ b/NEWS.md @@ -9,6 +9,9 @@ * `model_parameters()` for `anova()` from mixed models now also includes the denominator degrees of freedom in the output (`df_error`). +* Patch release, to ensure that performance runs with older version of datawizard + on Mac OS X with R (old-release). + # parameters 0.22.0 ## Breaking changes diff --git a/R/standardize_info.R b/R/standardize_info.R index eb6feb816..e7e7c4a24 100644 --- a/R/standardize_info.R +++ b/R/standardize_info.R @@ -17,7 +17,7 @@ #' #' @family standardize #' -#' @examples +#' @examplesIf insight::check_if_installed("datawizard", minimum_version = "0.12.0", quietly = TRUE) #' model <- lm(mpg ~ ., data = mtcars) #' standardize_info(model) #' standardize_info(model, robust = TRUE) @@ -422,6 +422,7 @@ standardize_info.default <- function(model, } insight::check_if_installed("performance") + insight::check_if_installed("datawizard", minimum_version = "0.12.0") f <- if (two_sd) 2 else 1 diff --git a/man/standardize_info.Rd b/man/standardize_info.Rd index 0bf36caa8..385af35d6 100644 --- a/man/standardize_info.Rd +++ b/man/standardize_info.Rd @@ -51,10 +51,12 @@ parameters. This function gives a window on how standardized are obtained, i.e., by what they are divided. The "basic" method of standardization uses. } \examples{ +\dontshow{if (insight::check_if_installed("datawizard", minimum_version = "0.12.0", quietly = TRUE)) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf} model <- lm(mpg ~ ., data = mtcars) standardize_info(model) standardize_info(model, robust = TRUE) standardize_info(model, two_sd = TRUE) +\dontshow{\}) # examplesIf} } \seealso{ Other standardize: diff --git a/tests/testthat/test-standardize_info.R b/tests/testthat/test-standardize_info.R index 02acc3cb3..9de1b38d4 100644 --- a/tests/testthat/test-standardize_info.R +++ b/tests/testthat/test-standardize_info.R @@ -1,4 +1,5 @@ test_that("standardize_info", { + skip_if_not_installed("datawizard", minimum_version = "0.12.0") skip_if_not_installed("nlme") skip_if_not_installed("lme4") fm1 <- nlme::lme(mpg ~ cyl, mtcars, random = ~ 1 | gear) diff --git a/tests/testthat/test-standardize_parameters.R b/tests/testthat/test-standardize_parameters.R index 8853fe432..c8ea93295 100644 --- a/tests/testthat/test-standardize_parameters.R +++ b/tests/testthat/test-standardize_parameters.R @@ -322,6 +322,7 @@ test_that("standardize_parameters (Bayes)", { # Pseudo - GLMM -------------------------------- test_that("standardize_parameters (Pseudo - GLMM)", { + skip_if_not_installed("datawizard", minimum_version = "0.12.0") skip_on_cran() skip_if_not_installed("lme4") set.seed(1)