Skip to content

Commit

Permalink
CRAN submission (#789)
Browse files Browse the repository at this point in the history
* CRAN submission

* be less verbose

* add test

* submitted
  • Loading branch information
strengejacke authored Jun 29, 2023
1 parent 704ee19 commit a95325c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 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.19.2
Date: 2023-05-23 15:29:06 UTC
SHA: aff90a1106ec876c55d22aa833b27d2c5192d2cd
Version: 0.19.3
Date: 2023-06-27 17:03:53 UTC
SHA: 192c44fff3e72bc693d0b937e72028bf80513077
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: insight
Title: Easy Access to Model Information for Various Model Objects
Version: 0.19.2.7
Version: 0.19.3
Authors@R:
c(person(given = "Daniel",
family = "Lüdecke",
Expand Down
7 changes: 5 additions & 2 deletions R/is_nullmodel.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ is_nullmodel <- function(x) {
#' @export
is_nullmodel.default <- function(x) {
if (is_multivariate(x)) {
unlist(lapply(find_predictors(x, effects = "fixed", component = "conditional"), .check_for_nullmodel))
unlist(lapply(
find_predictors(x, effects = "fixed", component = "conditional", verbose = FALSE),
.check_for_nullmodel
))
} else {
.check_for_nullmodel(find_predictors(x, effects = "fixed", component = "conditional"))
.check_for_nullmodel(find_predictors(x, effects = "fixed", component = "conditional", verbose = FALSE))
}
}

Expand Down
2 changes: 2 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Maintainance release.

## revdepcheck results

We checked 35 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.
Expand Down
4 changes: 4 additions & 0 deletions tests/testthat/test-is_nullmodel.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ test_that("is_nullmodel", {
expect_false(is_nullmodel(m4))
expect_true(is_nullmodel(m5))
})

test_that("is_nullmodel, don't be verbose", {
expect_silent(is_nullmodel(lm(mtcars$mpg ~ 1)))
})

0 comments on commit a95325c

Please sign in to comment.