Skip to content

Commit

Permalink
Merge branch 'main' into check_smooth
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke authored Jul 18, 2024
2 parents c3d0b89 + 43c7292 commit 026a741
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 37 deletions.
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 0.12.0
Date: 2024-06-07 17:11:44 UTC
SHA: cb1c46609c8f943a736f3c76b5cadd4272e7bdf2
Version: 0.12.2
Date: 2024-07-17 21:02:38 UTC
SHA: d4c45126ca666644785dc64d2af6b87eee9ca39b
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: performance
Title: Assessment of Regression Models Performance
Version: 0.12.0.13
Version: 0.12.2
Authors@R:
c(person(given = "Daniel",
family = "Lüdecke",
Expand Down
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# performance 0.12.2

Patch release, to ensure that _performance_ runs with older version of
_datawizard_ on Mac OSX with R (old-release).

# performance 0.12.1

## General
Expand Down
5 changes: 4 additions & 1 deletion R/check_heterogeneity_bias.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,20 @@
#' Modeling of Time-Series Cross-Sectional and Panel Data. Political Science
#' Research and Methods, 3(1), 133–153.
#'
#' @examples
#' @examplesIf insight::check_if_installed("datawizard", minimum_version = "0.12.0", quietly = TRUE)
#' data(iris)
#' iris$ID <- sample(1:4, nrow(iris), replace = TRUE) # fake-ID
#' check_heterogeneity_bias(iris, select = c("Sepal.Length", "Petal.Length"), by = "ID")
#' @export
check_heterogeneity_bias <- function(x, select = NULL, by = NULL, group = NULL) {
insight::check_if_installed("datawizard", minimum_version = "0.12.0")

## TODO: deprecate later
if (!is.null(group)) {
insight::format_warning("Argument `group` is deprecated and will be removed in a future release. Please use `by` instead.") # nolint
by <- group
}

if (insight::is_model(x)) {
by <- insight::find_random(x, split_nested = TRUE, flatten = TRUE)
if (is.null(by)) {
Expand Down
4 changes: 1 addition & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
This release fixes errors in CRAN checks.

Additionally, in the process of stabilizing the API/user interface for packages from the 'easystats' project, some argument names were renamed and old names have been deprecated. This will not break downstream dependent packages, however, reverse-dependency checks will raise warnings. We have already patched all affected downstream packages and will submit them to CRAN in the next few days, after the release of 'performance'. Once this release-cycle is complete, all warnings due to deprecated argument names should be resolved.
This is a patch release that fixes failing CRAN checks for Mac OS old-rel.
2 changes: 2 additions & 0 deletions man/check_heterogeneity_bias.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-check_heterogeneity_bias.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
test_that("check_heterogeneity_bias", {
skip_if_not_installed("datawizard", minimum_version = "0.12.0")
data(iris)
set.seed(123)
iris$ID <- sample.int(4, nrow(iris), replace = TRUE) # fake-ID
Expand Down
29 changes: 0 additions & 29 deletions tests/testthat/test-logLik.R

This file was deleted.

0 comments on commit 026a741

Please sign in to comment.