Skip to content

Commit

Permalink
Accept NULL to get_labels_from_stats (#1215)
Browse files Browse the repository at this point in the history
Fixes #1214
  • Loading branch information
edelarua authored Mar 22, 2024
1 parent 4350352 commit a956887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/utils_default_stats_formats_labels.R
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ get_formats_from_stats <- function(stats, formats_in = NULL) {
#'
#' @export
get_labels_from_stats <- function(stats, labels_in = NULL, row_nms = NULL) {
checkmate::assert_character(stats, min.len = 1)
checkmate::assert_character(stats, min.len = 1, null.ok = TRUE)
checkmate::assert_character(row_nms, null.ok = TRUE)
# It may be a list
if (checkmate::test_list(labels_in, null.ok = TRUE)) {
Expand Down

0 comments on commit a956887

Please sign in to comment.