Skip to content

Commit

Permalink
Merge branch 'hotfix/2.5.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
adamblake committed Feb 1, 2022
2 parents 07b1746 + 1afdf05 commit 8b93f1d
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 17 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ cache_test_data
^\.github$
^\.lintr$
^data-raw$
^CRAN-SUBMISSION$
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: supernova
Type: Package
Title: Judd, McClelland, & Ryan Formatting for ANOVA Output
Version: 2.5.1
Date: 2022-01-26
Version: 2.5.2
Date: 2022-01-31
Authors@R: c(
person(
"Adam", "Blake",
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# supernova 2.5.2

## Breaking (kind of)

* Deprecate `superanova()` as it was just an alias to `supernova()` (which was confusing for some students)


# supernova 2.5.1

* Fix issue where models with long calls (i.e. `deparse(model$call)` results in a vector of length greater than 1) would break the functionality of `listwise_delete()`
* Change print method for `generate_models()` to look clean and comprehensible in Jupyter Notebooks.


# supernova 2.5.0

* Change the order of the pairs when plotting `pairwise()` so that the plot matches the table.
Expand Down
12 changes: 7 additions & 5 deletions R/supernova.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ supernova <- function(fit, type = 3, verbose = TRUE) {
}


#' @export
#' @rdname supernova
superanova <- function(fit, type = 3, verbose = TRUE) {
lifecycle::deprecate_stop("2.5.2", "superanova()", "supernova()")
}


#' @export
#' @rdname supernova
supernova.lm <- function(fit, type = 3, verbose = TRUE) {
Expand Down Expand Up @@ -365,11 +372,6 @@ supernova.lmerMod <- function(fit, type = 3, verbose = FALSE) {
}


#' @export
#' @rdname supernova
superanova <- supernova


# Printing ------------------------------------------------------------------------------------

#' @export
Expand Down
4 changes: 1 addition & 3 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
## Release summary

* Fix issue where models with long calls (i.e. `deparse(model$call)` results in a vector of length greater than 1) would break the functionality of `listwise_delete()`
* Change print method for `generate_models()` to look clean and comprehensible in Jupyter Notebooks.

* Deprecate unused function alias (it was confusing some users and does nothing different)

## Test environments

Expand Down
6 changes: 3 additions & 3 deletions man/supernova.Rd

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

4 changes: 0 additions & 4 deletions tests/testthat/test-supernova.r
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@ expect_table_data <- function(object, expected, model = "???", type = "???", ...

# Structure tests ---------------------------------------------------------

test_that("superanova is an alias of supernova", {
expect_identical(superanova, supernova)
})

test_that("supernova object has table, fit, and models", {
fit <- lm(mpg ~ NULL, mtcars)
obj <- supernova(fit, type = 3)
Expand Down

0 comments on commit 8b93f1d

Please sign in to comment.