From 100cd9532605489aef256b1847615908994caa04 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 2 Dec 2024 16:27:41 +0100 Subject: [PATCH 1/2] Update `DESCRIPTION` to use latest 'easystats' dependencies (#783) Co-authored-by: IndrajeetPatil <11330453+IndrajeetPatil@users.noreply.github.com> --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index b6f58b233..55b3f2efc 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -74,7 +74,7 @@ Depends: R (>= 3.6) Imports: bayestestR (>= 0.15.0), - insight (>= 0.20.5), + insight (>= 1.0.0), datawizard (>= 0.13.0), stats, utils From ca8872d6174046a9975caf19fda863cd6362bb31 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 3 Dec 2024 11:56:34 +0100 Subject: [PATCH 2/2] Use new arg-names of `data_rename()` (#784) --- DESCRIPTION | 4 ++-- R/check_collinearity.R | 2 +- R/check_model_diagnostics.R | 9 +-------- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 55b3f2efc..23190a9e4 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: performance Title: Assessment of Regression Models Performance -Version: 0.12.4.8 +Version: 0.12.4.12 Authors@R: c(person(given = "Daniel", family = "Lüdecke", @@ -160,4 +160,4 @@ Config/Needs/website: r-lib/pkgdown, easystats/easystatstemplate Config/rcmdcheck/ignore-inconsequential-notes: true -Remotes: easystats/insight +Remotes: easystats/datawizard, easystats/see diff --git a/R/check_collinearity.R b/R/check_collinearity.R index 2ff00e036..989483610 100644 --- a/R/check_collinearity.R +++ b/R/check_collinearity.R @@ -198,7 +198,7 @@ plot.check_collinearity <- function(x, ...) { x <- insight::format_table(x) x <- datawizard::data_rename( x, - pattern = "SE_factor", + select = "SE_factor", replacement = "Increased SE", verbose = FALSE ) diff --git a/R/check_model_diagnostics.R b/R/check_model_diagnostics.R index 9595ed968..df16f252c 100644 --- a/R/check_model_diagnostics.R +++ b/R/check_model_diagnostics.R @@ -10,16 +10,9 @@ dat$group[dat$VIF >= 5 & dat$VIF < 10] <- "moderate" dat$group[dat$VIF >= 10] <- "high" - dat <- datawizard::data_rename( - dat, - c("Term", "VIF", "SE_factor", "Component"), - c("x", "y", "se", "facet"), - verbose = FALSE - ) - dat <- datawizard::data_select( dat, - c("x", "y", "facet", "group"), + select = c(x = "Term", y = "VIF", facet = "Component", group = "group"), verbose = FALSE )