Skip to content

Commit

Permalink
Merge branch 'main' into strengejacke/issue982
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke authored Jul 20, 2024
2 parents eeaaae6 + 82cf1b3 commit e5d8805
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion R/standardize_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions man/standardize_info.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions tests/testthat/test-standardize_info.R
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-standardize_parameters.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e5d8805

Please sign in to comment.