From b72113634deda7c234583e3aa33e987eda1ecac0 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 7 Jun 2024 11:24:48 +0200 Subject: [PATCH] Prepare CRAN release (#729) --- DESCRIPTION | 3 +-- NEWS.md | 2 +- R/check_predictions.R | 4 +++- tests/testthat/test-check_outliers.R | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index c1377dce1..a5bb5e1ee 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Type: Package Package: performance Title: Assessment of Regression Models Performance -Version: 0.11.0.9 +Version: 0.12.0 Authors@R: c(person(given = "Daniel", family = "Lüdecke", @@ -154,4 +154,3 @@ Config/Needs/website: r-lib/pkgdown, easystats/easystatstemplate Config/rcmdcheck/ignore-inconsequential-notes: true -Remotes: easystats/insight, easystats/datawizard, easystats/parameters, easystats/bayestestR diff --git a/NEWS.md b/NEWS.md index 7b5fefd5b..51a13a1f0 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# performance 0.11.1 +# performance 0.12.0 ## Breaking diff --git a/R/check_predictions.R b/R/check_predictions.R index 2779e3a5a..e9d05fdfd 100644 --- a/R/check_predictions.R +++ b/R/check_predictions.R @@ -222,7 +222,9 @@ check_predictions.BFBayesFactor <- function(object, if (isTRUE(is.na(re_formula))) { yy <- everything_we_need[["y_pred_marginal"]] } else { - if (!is.null(re_formula)) warning("re_formula can only be NULL or NA", call. = FALSE) + if (!is.null(re_formula)) { + insight::format_warning("`re_formula` can only be `NULL` or `NA`.") + } yy <- everything_we_need[["y_pred"]] } diff --git a/tests/testthat/test-check_outliers.R b/tests/testthat/test-check_outliers.R index 704b27feb..6aa64516f 100644 --- a/tests/testthat/test-check_outliers.R +++ b/tests/testthat/test-check_outliers.R @@ -255,6 +255,7 @@ test_that("multiple methods with ID", { x$outlier_var$zscore$mpg$car, "Toyota Corolla" ) + skip_if(getRversion() > "4.4.0") expect_identical( x$outlier_count$all$car[1], "Maserati Bora"