diff --git a/R/utils_default_stats_formats_labels.R b/R/utils_default_stats_formats_labels.R index c3b06816e6..b1adb1ff0a 100644 --- a/R/utils_default_stats_formats_labels.R +++ b/R/utils_default_stats_formats_labels.R @@ -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)) {