Skip to content

Commit

Permalink
Use insight::n_unique()
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Sep 13, 2023
1 parent 1e3e2fa commit 142d10f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
}

.has_multiple_panels <- function(x) {
(!"Effects" %in% names(x) || length(unique(x$Effects)) <= 1L) &&
(!"Component" %in% names(x) || length(unique(x$Component)) <= 1L)
(!"Effects" %in% names(x) || insight::n_unique(x$Effects) <= 1L) &&
(!"Component" %in% names(x) || insight::n_unique(x$Component) <= 1L)
}

.clean_parameter_names <- function(params, grid = FALSE) {
Expand Down

0 comments on commit 142d10f

Please sign in to comment.