From 1b56858dfc29dc7949b3950fab3f712140278a6a Mon Sep 17 00:00:00 2001 From: Michael Stackhouse Date: Mon, 18 Dec 2023 08:35:08 -0500 Subject: [PATCH 1/2] Update tests/testthat/test-collapse_row_labels.R Co-authored-by: Shiyu Chen <39443807+ShiyuC@users.noreply.github.com> --- tests/testthat/test-collapse_row_labels.R | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/testthat/test-collapse_row_labels.R b/tests/testthat/test-collapse_row_labels.R index e6242eb9..86a34184 100644 --- a/tests/testthat/test-collapse_row_labels.R +++ b/tests/testthat/test-collapse_row_labels.R @@ -1,16 +1,16 @@ dat <- tibble::tribble( ~row_label1, ~row_label2, ~row_label3, ~row_label4, ~var1, - "A", "C", "G", "M", 1L, - "A", "C", "G", "N", 2L, - "A", "C", "H", "O", 3L, - "A", "D", "H", "P", 4L, - "A", "D", "I", "Q", 5L, - "A", "D", "I", "R", 6L, - "B", "E", "J", "S", 7L, - "B", "E", "J", "T", 8L, - "B", "E", "K", "U", 9L, - "B", "F", "K", "V", 10L, - "B", "F", "L", "W", 11L + "A", "C", "G", "M", 1L, + "A", "C", "G", "N", 2L, + "A", "C", "H", "O", 3L, + "A", "D", "H", "P", 4L, + "A", "D", "I", "Q", 5L, + "A", "D", "I", "R", 6L, + "B", "E", "J", "S", 7L, + "B", "E", "J", "T", 8L, + "B", "E", "K", "U", 9L, + "B", "F", "K", "V", 10L, + "B", "F", "L", "W", 11L ) From 5e5d24429142358c5a55379c3b0f0b1ec4a1512d Mon Sep 17 00:00:00 2001 From: Michael Stackhouse Date: Mon, 18 Dec 2023 08:35:16 -0500 Subject: [PATCH 2/2] Update R/collapse_row_labels.R Co-authored-by: Shiyu Chen <39443807+ShiyuC@users.noreply.github.com> --- R/collapse_row_labels.R | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/R/collapse_row_labels.R b/R/collapse_row_labels.R index 23c1f376..d4a7e547 100644 --- a/R/collapse_row_labels.R +++ b/R/collapse_row_labels.R @@ -29,17 +29,17 @@ add_indentation <- function(.x, .y, indent = " ") { #' @examples #' x <- tibble::tribble( #' ~row_label1, ~row_label2, ~row_label3, ~row_label4, ~var1, -#' "A", "C", "G", "M", 1L, -#' "A", "C", "G", "N", 2L, -#' "A", "C", "H", "O", 3L, -#' "A", "D", "H", "P", 4L, -#' "A", "D", "I", "Q", 5L, -#' "A", "D", "I", "R", 6L, -#' "B", "E", "J", "S", 7L, -#' "B", "E", "J", "T", 8L, -#' "B", "E", "K", "U", 9L, -#' "B", "F", "K", "V", 10L, -#' "B", "F", "L", "W", 11L +#' "A", "C", "G", "M", 1L, +#' "A", "C", "G", "N", 2L, +#' "A", "C", "H", "O", 3L, +#' "A", "D", "H", "P", 4L, +#' "A", "D", "I", "Q", 5L, +#' "A", "D", "I", "R", 6L, +#' "B", "E", "J", "S", 7L, +#' "B", "E", "J", "T", 8L, +#' "B", "E", "K", "U", 9L, +#' "B", "F", "K", "V", 10L, +#' "B", "F", "L", "W", 11L #' ) #' #'