From a3b83101c606ee0bf8875363e03009827ff5eda3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Tue, 22 Feb 2022 06:00:48 +0100 Subject: [PATCH 1/4] Require rlang 1.0.1 --- DESCRIPTION | 2 +- tests/testthat/_snaps/format_multi.md | 881 ++++++++++++ tests/testthat/_snaps/format_multi_fuzz.md | 978 +++++++++++++ tests/testthat/_snaps/format_multi_fuzz_2.md | 1221 +++++++++++++++++ tests/testthat/_snaps/tbl-format.md | 25 + .../testthat_3.1.2-unicode/format_multi.md | 3 +- .../_snaps/testthat_3.1.2/format_multi.md | 195 ++- .../testthat_3.1.2/format_multi_fuzz.md | 45 +- .../testthat_3.1.2/format_multi_fuzz_2.md | 45 +- .../_snaps/testthat_3.1.2/tbl-format.md | 3 +- .../testthat_3.1.2/zzx-format_character.md | 3 +- tests/testthat/_snaps/unicode/format_multi.md | 7 - tests/testthat/_snaps/zzx-format_character.md | 27 + tests/testthat/helper-snapshot.R | 2 +- 14 files changed, 3330 insertions(+), 107 deletions(-) create mode 100644 tests/testthat/_snaps/format_multi_fuzz.md create mode 100644 tests/testthat/_snaps/format_multi_fuzz_2.md create mode 100644 tests/testthat/_snaps/zzx-format_character.md diff --git a/DESCRIPTION b/DESCRIPTION index 9bf8ab7c0..4973f0621 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -24,7 +24,7 @@ Imports: fansi, glue, lifecycle, - rlang (>= 0.3.0), + rlang (>= 1.0.1), utf8 (>= 1.1.0), utils, vctrs (>= 0.3.8) diff --git a/tests/testthat/_snaps/format_multi.md b/tests/testthat/_snaps/format_multi.md index 4f8f477f9..841e380c2 100644 --- a/tests/testthat/_snaps/format_multi.md +++ b/tests/testthat/_snaps/format_multi.md @@ -17,6 +17,797 @@ Output [1] "NA" +# output test + + Code + colonnade(x, width = 4) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Code + colonnade(x, width = 5) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Code + colonnade(x, width = 6) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Code + colonnade(x, width = 7) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + colu~ + + 1 1.23 + 2 2.23 + 3 3.23 + Code + colonnade(x, width = 8) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + colum~ + + 1 1.23 + 2 2.23 + 3 3.23 + Code + colonnade(x, width = 9) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column~ + + 1 1.23 + 2 2.23 + 3 3.23 + Code + colonnade(x, width = 10) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_~ + + 1 1.23 + 2 2.23 + 3 3.23 + Code + colonnade(x, width = 11) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_z~ + + 1 1.23 + 2 2.23 + 3 3.23 + Code + colonnade(x, width = 12) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_ze~ + + 1 1.23 + 2 2.23 + 3 3.23 + Code + colonnade(x, width = 13) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zer~ + + 1 1.23 + 2 2.23 + 3 3.23 + Code + colonnade(x, width = 14) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero~ + + 1 1.23 + 2 2.23 + 3 3.23 + Code + colonnade(x, width = 15) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_~ + + 1 1.23 + 2 2.23 + 3 3.23 + Code + colonnade(x, width = 16) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_o~ + + 1 1.23 + 2 2.23 + 3 3.23 + Code + colonnade(x, width = 17) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one + + 1 1.23 + 2 2.23 + 3 3.23 + Code + colonnade(x, width = 18) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one + + 1 1.23 + 2 2.23 + 3 3.23 + Code + colonnade(x, width = 19) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one + + 1 1.23 + 2 2.23 + 3 3.23 + Code + colonnade(x, width = 20) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one + + 1 1.23 + 2 2.23 + 3 3.23 + Code + colonnade(x, width = 21) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one + + 1 1.23 + 2 2.23 + 3 3.23 + Code + colonnade(x, width = 22) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one + + 1 1.23 + 2 2.23 + 3 3.23 + Code + colonnade(x, width = 23) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one + + 1 1.23 + 2 2.23 + 3 3.23 + Code + colonnade(x, width = 24) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one col_02 + + 1 1.23 a + 2 2.23 b + 3 3.23 c + Code + colonnade(x, width = 25) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one col_02 + + 1 1.23 a + 2 2.23 b + 3 3.23 c + Code + colonnade(x, width = 26) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one col_02 + + 1 1.23 a + 2 2.23 b + 3 3.23 c + Code + colonnade(x, width = 27) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one col_02 + + 1 1.23 a + 2 2.23 b + 3 3.23 c + Code + colonnade(x, width = 28) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one col_02 + + 1 1.23 a + 2 2.23 b + 3 3.23 c + Code + colonnade(x, width = 29) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one col_02 + + 1 1.23 a + 2 2.23 b + 3 3.23 c + Code + colonnade(x, width = 30) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one col_02 + + 1 1.23 a + 2 2.23 b + 3 3.23 c + Code + colonnade(x, width = 31) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one col_02 col_03 + + 1 1.23 a a + 2 2.23 b b + 3 3.23 c c + Code + colonnade(x, width = 32) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one col_02 col_03 + + 1 1.23 a a + 2 2.23 b b + 3 3.23 c c + Code + colonnade(x, width = 33) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one col_02 col_03 + + 1 1.23 a a + 2 2.23 b b + 3 3.23 c c + Code + colonnade(x, width = 34) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one col_02 col_03 + + 1 1.23 a a + 2 2.23 b b + 3 3.23 c c + Code + colonnade(x, width = 35) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one col_02 col_03 + + 1 1.23 a a + 2 2.23 b b + 3 3.23 c c + Code + colonnade(x, width = 36) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one col_02 col_03 + + 1 1.23 a a + 2 2.23 b b + 3 3.23 c c + Code + colonnade(x, width = 37) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one col_02 col_03 + + 1 1.23 a a + 2 2.23 b b + 3 3.23 c c + Code + colonnade(x, width = 38) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one col_02 col_03 col_04 + + 1 1.23 a a a + 2 2.23 b b b + 3 3.23 c c c + Code + colonnade(x, width = 39) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one col_02 col_03 col_04 + + 1 1.23 a a a + 2 2.23 b b b + 3 3.23 c c c + Code + colonnade(x, width = Inf) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + column_zero_one col_02 col_03 col_04 + + 1 1.23 a a a + 2 2.23 b b b + 3 3.23 c c c + +--- + + Code + colonnade(rep(list(paste(letters, collapse = " ")), 4), width = Inf) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + + 1 a b c d e f g h i j k l m n o p q r s t u v w x y z + + 1 a b c d e f g h i j k l m n o p q r s t u v w x y z + + 1 a b c d e f g h i j k l m n o p q r s t u v w x y z + + 1 a b c d e f g h i j k l m n o p q r s t u v w x y z + +--- + + Code + as_glue(extra_cols_impl(squeeze_impl(colonnade(x), width = 10))) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + col_02  + col_03  + col_04  + +--- + + Code + as_glue(extra_cols_impl(squeeze_impl(colonnade(x), width = 20))) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + col_02  + col_03  + col_04  + +--- + + Code + as_glue(extra_cols_impl(squeeze_impl(colonnade(x), width = 30))) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + col_03  + col_04  + +--- + + Code + as_glue(extra_cols_impl(squeeze_impl(colonnade(x), width = 35))) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + col_04  + +--- + + Code + as_glue(extra_cols_impl(squeeze_impl(colonnade(x), width = 40))) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + +# tests from tibble + + Code + colonnade(mtcars[1:8, ], has_row_id = "*", width = 30) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + mpg cyl disp hp + * + 1 21 6 160 110 + 2 21 6 160 110 + 3 22.8 4 108 93 + 4 21.4 6 258 110 + 5 18.7 8 360 175 + 6 18.1 6 225 105 + 7 14.3 8 360 245 + 8 24.4 4 147. 62 + Code + colonnade(trees[1:5, ], width = 20) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + Girth Height + + 1 8.3 70 + 2 8.6 65 + 3 8.8 63 + 4 10.5 72 + 5 10.7 81 + Code + colonnade(trees[1:3, ], width = 10) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + Girth + + 1 8.3 + 2 8.6 + 3 8.8 + Code + colonnade(df_all, width = 30) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + a b c d + + 1 1 1 TRUE a + 2 2.5 2 FALSE b + 3 NA NA NA + Code + colonnade(df_all, width = 300) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + a b c d e f g h + + 1 1 1 TRUE a a 2015-12-10 2015-12-09 10:51:35 + 2 2.5 2 FALSE b b 2015-12-11 2015-12-09 10:51:36 + 3 NA NA NA NA NA + i + + 1 + 2 + 3 + Code + options(width = 70) + colonnade(df_all, width = 300) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + a b c d e f g + + 1 1 1 TRUE a a 2015-12-10 2015-12-09 10:51:35 + 2 2.5 2 FALSE b b 2015-12-11 2015-12-09 10:51:36 + 3 NA NA NA NA NA + h i + + 1 + 2 + 3 + Code + options(width = 60) + colonnade(df_all, width = 300) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + a b c d e f + + 1 1 1 TRUE a a 2015-12-10 + 2 2.5 2 FALSE b b 2015-12-11 + 3 NA NA NA NA + g h i + + 1 2015-12-09 10:51:35 + 2 2015-12-09 10:51:36 + 3 NA + Code + options(width = 50) + colonnade(df_all, width = 300) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + a b c d e f + + 1 1 1 TRUE a a 2015-12-10 + 2 2.5 2 FALSE b b 2015-12-11 + 3 NA NA NA NA + g h i + + 1 2015-12-09 10:51:35 + 2 2015-12-09 10:51:36 + 3 NA + Code + options(width = 40) + colonnade(df_all, width = 300) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + a b c d e + + 1 1 1 TRUE a a + 2 2.5 2 FALSE b b + 3 NA NA NA + f g + + 1 2015-12-10 2015-12-09 10:51:35 + 2 2015-12-11 2015-12-09 10:51:36 + 3 NA NA + h i + + 1 + 2 + 3 + Code + options(width = 30) + colonnade(df_all, width = 300) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + a b c d + + 1 1 1 TRUE a + 2 2.5 2 FALSE b + 3 NA NA NA + e f + + 1 a 2015-12-10 + 2 b 2015-12-11 + 3 NA + g + + 1 2015-12-09 10:51:35 + 2 2015-12-09 10:51:36 + 3 NA + h i + + 1 + 2 + 3 + Code + options(width = 20) + colonnade(df_all, width = 300) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + a b c + + 1 1 1 TRUE + 2 2.5 2 FALSE + 3 NA NA NA + d e + + 1 a a + 2 b b + 3 + f + + 1 2015-12-10 + 2 2015-12-11 + 3 NA + g + + 1 2015-12-09 10:51:~ + 2 2015-12-09 10:51:~ + 3 NA + h + + 1 + 2 + 3 + i + + 1 + 2 + 3 + Code + list_with_ctl <- list(c("\n", "\""), factor(c("\n", "\n"))) + names(list_with_ctl) <- c("\n", "\r") + colonnade(list_with_ctl, width = 30) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `\n` `\r` + + 1 "\n" "\n" + 2 "\"" "\n" + Code + colonnade(list(a = c("", " ", "a ", " a")), width = 30) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + a + + 1 "" + 2 " " + 3 "a " + 4 " a" + Code + colonnade(list(`mean(x)` = 5, `var(x)` = 3), width = 30) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `mean(x)` `var(x)` + + 1 5 3 + +# NA names + + Code + colonnade(x, width = 30) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `NA` + + 1 1 4 + 2 2 5 + 3 3 6 + +# sep argument + + Code + colonnade(x, width = 30) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + sep + + 1 1 + 2 2 + 3 3 + Code + # dummy + # sanity check (2) Code @@ -36,3 +827,93 @@ Output [1] "NA" +# tibble columns + + Code + colonnade(x, width = 30) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + a b$c $d + + 1 1 4 7 + 2 2 5 8 + 3 3 6 9 + +# tibble columns (nested) + + Code + colonnade(x, width = 40) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + a b$c $d $e$f $$g + + 1 1 4 7 10 13 + 2 2 5 8 11 14 + 3 3 6 9 12 15 + +# tibble columns (empty) + + Code + colonnade(x, width = 40) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + a b$c $d $e $f + + 1 1 4 7 10 + 2 2 5 8 11 + 3 3 6 9 12 + +# matrix columns (unnamed) + + Code + colonnade(x, width = 30) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + a b[,1] [,2] + + 1 1 4 7 + 2 2 5 8 + 3 3 6 9 + +# matrix columns (named) + + Code + colonnade(x, width = 30) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + a b[,"c"] [,"d"] + + 1 1 4 7 + 2 2 5 8 + 3 3 6 9 + +# matrix columns (empty) + + Code + colonnade(x, width = 30) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + a b c + + 1 1 4 + 2 2 5 + 3 3 6 + diff --git a/tests/testthat/_snaps/format_multi_fuzz.md b/tests/testthat/_snaps/format_multi_fuzz.md new file mode 100644 index 000000000..6ec0b1cc2 --- /dev/null +++ b/tests/testthat/_snaps/format_multi_fuzz.md @@ -0,0 +1,978 @@ +# strings with varying widths + + Code + options(width = 59) + colonnade(df_str[c(12L, 33L, 36L, 7L, 41L, 3L, 18L, 23L, 13L, 44L, 14L, 16L, + 25L, 21L, 19L, 45L, 43L, 29L, 1L, 30L, 22L, 27L, 15L, 47L, 28L, 31L, 10L, 50L, + 4L, 40L, 42L, 8L, 6L, 9L, 24L, 48L, 38L, 37L, 34L, 49L, 46L, 2L, 32L, 35L, + 39L, 11L, 17L, 5L, 26L, 20L)], width = 1382) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `12` `33` + + 1 AbcdefghijAb AbcdefghijAbcdefghijAbcdefghijAbc + `36` `7` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef Abcdefg + `41` `3` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA Abc + `18` `23` `13` + + 1 AbcdefghijAbcdefgh AbcdefghijAbcdefghijAbc AbcdefghijAbc + `44` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcd + `14` `16` `25` + + 1 AbcdefghijAbcd AbcdefghijAbcdef AbcdefghijAbcdefghijAbcde + `21` `19` + + 1 AbcdefghijAbcdefghijA AbcdefghijAbcdefghi + `45` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcde + `43` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc + `29` `1` + + 1 AbcdefghijAbcdefghijAbcdefghi A + `30` `22` + + 1 AbcdefghijAbcdefghijAbcdefghij AbcdefghijAbcdefghijAb + `27` `15` + + 1 AbcdefghijAbcdefghijAbcdefg AbcdefghijAbcde + `47` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefg + `28` + + 1 AbcdefghijAbcdefghijAbcdefgh + `31` `10` + + 1 AbcdefghijAbcdefghijAbcdefghijA Abcdefghij + `50` `4` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefghij Abcd + `40` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghij + `42` `8` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAb Abcdefgh + `6` `9` `24` + + 1 Abcdef Abcdefghi AbcdefghijAbcdefghijAbcd + `48` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefgh + `38` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh + `37` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefg + `34` `49` `46` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcd Abcdefghij~ Abcdefghi~ + `2` `32` `35` `39` `11` `17` `5` `26` `20` + + 1 Ab Abcde~ Abcde~ Abcde~ Abcde~ Abcd~ Abcde Abcd~ Abcd~ + Code + options(width = 54) + colonnade(df_str[c(40L, 28L, 7L, 16L, 48L, 6L, 21L, 1L, 20L, 17L, 47L, 45L, 29L, + 41L, 49L, 34L, 4L, 39L, 18L, 36L, 26L, 38L, 10L, 8L, 5L, 15L, 44L, 24L, 46L, + 14L, 25L, 27L, 3L, 37L, 35L, 12L, 9L, 13L, 22L, 33L, 42L, 11L, 19L, 50L, 23L, + 30L, 32L, 2L, 43L, 31L)], width = 837) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `40` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghij + `28` `7` + + 1 AbcdefghijAbcdefghijAbcdefgh Abcdefg + `16` + + 1 AbcdefghijAbcdef + `48` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefgh + `6` `21` `1` + + 1 Abcdef AbcdefghijAbcdefghijA A + `20` `17` + + 1 AbcdefghijAbcdefghij AbcdefghijAbcdefg + `47` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefg + `45` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcde + `29` + + 1 AbcdefghijAbcdefghijAbcdefghi + `41` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA + `49` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefghi + `34` `4` `39` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcd Abcd Abcdefghij~ + `18` `36` `26` `38` `10` `8` `5` `15` + + 1 Abcde~ Abcdef~ Abcde~ Abcde~ Abcd~ Abcd~ Abcde Abcd~ + `44` `24` `46` `14` `25` `27` `3` `37` + + 1 Abcdef~ Abcde~ Abcdef~ Abcd~ Abcd~ Abcd~ Abc Abcd~ + `35` `12` `9` `13` `22` `33` `42` `11` + + 1 Abcdef~ Abcde~ Abcd~ Abcd~ Abcd~ Abcde~ Abcde~ Abcd~ + `19` `50` `23` `30` `32` `2` `43` `31` + + 1 Abcde~ Abcdef~ Abcde~ Abcde~ Abcd~ Ab Abcd~ Abcd~ + Code + options(width = 32) + colonnade(df_str[c(47L, 42L, 4L, 46L, 9L, 34L, 19L, 39L, 8L, 32L, 36L, 12L, 29L, + 5L, 15L, 11L, 31L, 27L, 33L, 28L, 43L, 6L, 13L, 22L, 14L, 16L, 35L, 50L, 38L, + 7L, 23L, 45L, 40L, 3L, 2L, 24L, 41L, 10L, 30L, 25L, 17L, 26L, 48L, 37L, 49L, + 1L, 18L, 21L, 44L, 20L)], width = 455) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `47` + + 1 AbcdefghijAbcdefghijAbcdefghi~ + `42` + + 1 AbcdefghijAbcdefghijAbcdefghi~ + `4` + + 1 Abcd + `46` + + 1 AbcdefghijAbcdefghijAbcdefghi~ + `9` + + 1 Abcdefghi + `34` + + 1 AbcdefghijAbcdefghijAbcdefghi~ + `19` `39` `8` `32` + + 1 Abcdef~ Abcdefg~ Abcd~ Abcdef~ + `36` `12` `29` `5` `15` + + 1 Abcde~ Abcd~ Abcd~ Abcde Abcd~ + `11` `31` `27` `33` `28` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `43` `6` `13` `22` `14` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `16` `35` `50` `38` `7` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `23` `45` `40` `3` `2` + + 1 Abcde~ Abcd~ Abcd~ Abc Ab + `24` `41` `10` `30` `25` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `17` `26` `48` `37` `49` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `1` `18` `21` `44` `20` + + 1 A Abcde~ Abcd~ Abcd~ Abcd~ + Code + options(width = 55) + colonnade(df_str[c(41L, 4L, 25L, 31L, 8L, 22L, 19L, 10L, 29L, 21L, 34L, 5L, 26L, + 36L, 47L, 46L, 2L, 24L, 27L, 39L, 28L, 43L, 32L, 30L, 48L, 44L, 6L, 20L, 13L, + 15L, 18L, 42L, 9L, 12L, 37L, 45L, 16L, 40L, 11L, 14L, 38L, 1L, 7L, 3L, 23L, + 35L, 50L, 17L, 49L, 33L)], width = 855) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `41` `4` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA Abcd + `25` + + 1 AbcdefghijAbcdefghijAbcde + `31` `8` + + 1 AbcdefghijAbcdefghijAbcdefghijA Abcdefgh + `22` `19` `10` + + 1 AbcdefghijAbcdefghijAb AbcdefghijAbcdefghi Abcdefghij + `29` `21` + + 1 AbcdefghijAbcdefghijAbcdefghi AbcdefghijAbcdefghijA + `34` `5` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcd Abcde + `26` + + 1 AbcdefghijAbcdefghijAbcdef + `36` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef + `47` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefg + `46` `2` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdef Ab + `24` `27` + + 1 AbcdefghijAbcdefghijAbcd AbcdefghijAbcdefghijAbcdefg + `39` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi + `28` `43` `32` + + 1 AbcdefghijAbcdefghijAbcdefgh AbcdefghijAb~ Abcdefghi~ + `30` `48` `44` `6` `20` `13` `15` `18` `42` + + 1 Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + `9` `12` `37` `45` `16` `40` `11` `14` `38` + + 1 Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + `1` `7` `3` `23` `35` `50` `17` `49` `33` + + 1 A Abcd~ Abc Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + Code + options(width = 54) + colonnade(df_str[c(27L, 22L, 9L, 23L, 16L, 19L, 25L, 31L, 44L, 1L, 28L, 46L, + 12L, 20L, 43L, 37L, 5L, 2L, 18L, 41L, 26L, 33L, 11L, 49L, 24L, 35L, 4L, 47L, + 30L, 7L, 34L, 3L, 32L, 42L, 10L, 45L, 38L, 39L, 48L, 14L, 6L, 17L, 36L, 50L, + 40L, 13L, 8L, 21L, 15L, 29L)], width = 552) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `27` `22` + + 1 AbcdefghijAbcdefghijAbcdefg AbcdefghijAbcdefghijAb + `9` `23` `16` + + 1 Abcdefghi AbcdefghijAbcdefghijAbc AbcdefghijAbcdef + `19` `25` + + 1 AbcdefghijAbcdefghi AbcdefghijAbcdefghijAbcde + `31` + + 1 AbcdefghijAbcdefghijAbcdefghijA + `44` `1` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcd A + `28` + + 1 AbcdefghijAbcdefghijAbcdefgh + `46` `12` `20` `43` `37` `5` `2` + + 1 Abcdefgh~ Abcde~ Abcde~ Abcdefg~ Abcdef~ Abcde Ab + `18` `41` `26` `33` `11` `49` `24` `35` + + 1 Abcde~ Abcde~ Abcde~ Abcde~ Abcd~ Abcde~ Abcd~ Abcd~ + `4` `47` `30` `7` `34` `3` `32` `42` + + 1 Abcd Abcdef~ Abcde~ Abcde~ Abcd~ Abc Abcd~ Abcde~ + `10` `45` `38` `39` `48` `14` `6` `17` + + 1 Abcde~ Abcdef~ Abcde~ Abcd~ Abcde~ Abcd~ Abcd~ Abcd~ + `36` `50` `40` `13` `8` `21` `15` `29` + + 1 Abcde~ Abcdef~ Abcdef~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + Code + options(width = 49) + colonnade(df_str[c(32L, 24L, 18L, 25L, 26L, 13L, 33L, 2L, 50L, 38L, 37L, 16L, + 27L, 9L, 28L, 49L, 34L, 15L, 17L, 35L, 22L, 47L, 3L, 21L, 23L, 41L, 5L, 1L, + 14L, 46L, 30L, 31L, 44L, 4L, 7L, 40L, 43L, 12L, 29L, 8L, 36L, 45L, 11L, 20L, + 10L, 6L, 19L, 48L, 39L, 42L)], width = 1031) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `32` + + 1 AbcdefghijAbcdefghijAbcdefghijAb + `24` `18` + + 1 AbcdefghijAbcdefghijAbcd AbcdefghijAbcdefgh + `25` + + 1 AbcdefghijAbcdefghijAbcde + `26` `13` + + 1 AbcdefghijAbcdefghijAbcdef AbcdefghijAbc + `33` `2` + + 1 AbcdefghijAbcdefghijAbcdefghijAbc Ab + `50` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdef~ + `38` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh + `37` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefg + `16` `27` + + 1 AbcdefghijAbcdef AbcdefghijAbcdefghijAbcdefg + `9` `28` + + 1 Abcdefghi AbcdefghijAbcdefghijAbcdefgh + `49` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdef~ + `34` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcd + `15` `17` + + 1 AbcdefghijAbcde AbcdefghijAbcdefg + `35` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcde + `22` + + 1 AbcdefghijAbcdefghijAb + `47` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefg + `3` `21` + + 1 Abc AbcdefghijAbcdefghijA + `23` + + 1 AbcdefghijAbcdefghijAbc + `41` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA + `5` `1` `14` `46` `30` `31` `44` `4` + + 1 Abcde A Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd + `7` `40` `43` `12` `29` `8` `36` `45` + + 1 Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + `11` `20` `10` `6` `19` `48` `39` `42` + + 1 Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + Code + options(width = 38) + colonnade(df_str[c(44L, 34L, 49L, 9L, 15L, 16L, 1L, 10L, 40L, 29L, 26L, 22L, 4L, + 43L, 20L, 17L, 46L, 33L, 35L, 32L, 2L, 12L, 8L, 37L, 23L, 39L, 7L, 18L, 36L, + 42L, 6L, 30L, 19L, 25L, 5L, 21L, 47L, 50L, 28L, 11L, 31L, 14L, 24L, 27L, 45L, + 41L, 38L, 3L, 13L, 48L)], width = 429) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `44` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcde~ + `34` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcd + `49` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcde~ + `9` `15` + + 1 Abcdefghi AbcdefghijAbcde + `16` `1` `10` + + 1 AbcdefghijAbcdef A Abcdefghij + `40` `29` `26` `22` `4` `43` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd Abcd~ + `20` `17` `46` `33` `35` `32` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + `2` `12` `8` `37` `23` `39` + + 1 Ab Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `7` `18` `36` `42` `6` `30` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + `19` `25` `5` `21` `47` `50` + + 1 Abcde~ Abcd~ Abcde Abcd~ Abcd~ Abcd~ + `28` `11` `31` `14` `24` `27` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + `45` `41` `38` `3` `13` `48` + + 1 Abcde~ Abcd~ Abcd~ Abc Abcd~ Abcd~ + Code + options(width = 54) + colonnade(df_str[c(21L, 26L, 8L, 22L, 41L, 24L, 13L, 5L, 47L, 37L, 4L, 42L, 19L, + 34L, 11L, 43L, 38L, 3L, 33L, 20L, 31L, 2L, 18L, 48L, 27L, 44L, 9L, 35L, 30L, + 6L, 49L, 10L, 1L, 16L, 46L, 29L, 12L, 14L, 45L, 36L, 15L, 39L, 50L, 23L, 17L, + 28L, 7L, 32L, 40L, 25L)], width = 633) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `21` `26` + + 1 AbcdefghijAbcdefghijA AbcdefghijAbcdefghijAbcdef + `8` `22` + + 1 Abcdefgh AbcdefghijAbcdefghijAb + `41` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA + `24` `13` `5` + + 1 AbcdefghijAbcdefghijAbcd AbcdefghijAbc Abcde + `47` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefg + `37` `4` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefg Abcd + `42` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAb + `19` `34` `11` `43` `38` `3` + + 1 AbcdefghijAbcdefghi Abcde~ Abcde~ Abcde~ Abcd~ Abc + `33` `20` `31` `2` `18` `48` `27` `44` + + 1 Abcde~ Abcde~ Abcde~ Ab Abcd~ Abcde~ Abcd~ Abcde~ + `9` `35` `30` `6` `49` `10` `1` `16` + + 1 Abcde~ Abcdef~ Abcde~ Abcd~ Abcde~ Abcd~ A Abcd~ + `46` `29` `12` `14` `45` `36` `15` `39` + + 1 Abcdef~ Abcde~ Abcde~ Abcd~ Abcde~ Abcd~ Abcd~ Abcd~ + `50` `23` `17` `28` `7` `32` `40` `25` + + 1 Abcdef~ Abcde~ Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + Code + options(width = 39) + colonnade(df_str[c(23L, 49L, 13L, 37L, 3L, 25L, 36L, 4L, 9L, 7L, 27L, 48L, 12L, + 10L, 50L, 14L, 38L, 39L, 46L, 22L, 28L, 8L, 21L, 44L, 32L, 40L, 31L, 1L, 29L, + 34L, 35L, 33L, 19L, 15L, 41L, 20L, 47L, 18L, 16L, 45L, 6L, 5L, 24L, 26L, 43L, + 11L, 42L, 30L, 17L, 2L)], width = 1496) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `23` + + 1 AbcdefghijAbcdefghijAbc + `49` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `13` + + 1 AbcdefghijAbc + `37` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefg + `3` `25` + + 1 Abc AbcdefghijAbcdefghijAbcde + `36` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef + `4` `9` `7` + + 1 Abcd Abcdefghi Abcdefg + `27` + + 1 AbcdefghijAbcdefghijAbcdefg + `48` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `12` `10` + + 1 AbcdefghijAb Abcdefghij + `50` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `14` + + 1 AbcdefghijAbcd + `38` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `39` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `46` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `22` + + 1 AbcdefghijAbcdefghijAb + `28` `8` + + 1 AbcdefghijAbcdefghijAbcdefgh Abcdefgh + `21` + + 1 AbcdefghijAbcdefghijA + `44` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `32` + + 1 AbcdefghijAbcdefghijAbcdefghijAb + `40` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `31` `1` + + 1 AbcdefghijAbcdefghijAbcdefghijA A + `29` + + 1 AbcdefghijAbcdefghijAbcdefghi + `34` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcd + `35` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcde + `33` + + 1 AbcdefghijAbcdefghijAbcdefghijAbc + `19` `15` + + 1 AbcdefghijAbcdefghi AbcdefghijAbcde + `41` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `20` + + 1 AbcdefghijAbcdefghij + `47` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `18` `16` + + 1 AbcdefghijAbcdefgh AbcdefghijAbcdef + `45` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `6` `5` `24` + + 1 Abcdef Abcde AbcdefghijAbcdefghijAbcd + `26` + + 1 AbcdefghijAbcdefghijAbcdef + `43` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `11` + + 1 AbcdefghijA + `42` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `30` + + 1 AbcdefghijAbcdefghijAbcdefghij + `17` `2` + + 1 AbcdefghijAbcdefg Ab + Code + options(width = 31) + colonnade(df_str[c(45L, 14L, 49L, 24L, 22L, 31L, 42L, 18L, 16L, 47L, 25L, 4L, + 37L, 8L, 26L, 21L, 50L, 5L, 41L, 30L, 2L, 33L, 34L, 3L, 44L, 19L, 43L, 6L, + 32L, 29L, 20L, 1L, 13L, 11L, 40L, 12L, 48L, 23L, 9L, 15L, 46L, 36L, 27L, 35L, + 28L, 10L, 7L, 39L, 17L, 38L)], width = 493) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `45` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `14` + + 1 AbcdefghijAbcd + `49` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `24` + + 1 AbcdefghijAbcdefghijAbcd + `22` + + 1 AbcdefghijAbcdefghijAb + `31` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `42` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `18` `16` `47` + + 1 Abcdefgh~ Abcdef~ Abcdefghij~ + `25` `4` `37` `8` `26` + + 1 Abcd~ Abcd Abcd~ Abcd~ Abcd~ + `21` `50` `5` `41` `30` + + 1 Abcd~ Abcd~ Abcde Abcd~ Abcd~ + `2` `33` `34` `3` `44` + + 1 Ab Abcd~ Abcd~ Abc Abcd~ + `19` `43` `6` `32` `29` + + 1 Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + `20` `1` `13` `11` `40` + + 1 Abcd~ A Abcd~ Abcd~ Abcd~ + `12` `48` `23` `9` `15` + + 1 Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + `46` `36` `27` `35` `28` + + 1 Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + `10` `7` `39` `17` `38` + + 1 Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + Code + options(width = 52) + colonnade(df_str[c(38L, 46L, 17L, 11L, 24L, 18L, 16L, 39L, 50L, 42L, 6L, 13L, + 37L, 29L, 41L, 47L, 9L, 33L, 44L, 31L, 45L, 36L, 28L, 5L, 10L, 30L, 20L, 1L, + 14L, 43L, 49L, 23L, 26L, 21L, 32L, 19L, 34L, 15L, 48L, 4L, 7L, 35L, 40L, 8L, + 22L, 3L, 25L, 12L, 27L, 2L)], width = 1130) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `38` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh + `46` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdef + `17` `11` + + 1 AbcdefghijAbcdefg AbcdefghijA + `24` `18` + + 1 AbcdefghijAbcdefghijAbcd AbcdefghijAbcdefgh + `16` + + 1 AbcdefghijAbcdef + `39` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi + `50` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefghij + `42` `6` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAb Abcdef + `13` + + 1 AbcdefghijAbc + `37` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefg + `29` + + 1 AbcdefghijAbcdefghijAbcdefghi + `41` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA + `47` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefg + `9` `33` + + 1 Abcdefghi AbcdefghijAbcdefghijAbcdefghijAbc + `44` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcd + `31` + + 1 AbcdefghijAbcdefghijAbcdefghijA + `45` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcde + `36` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef + `28` `5` `10` `30` + + 1 AbcdefghijAbcdefghijAbcdefgh Abcde Abcde~ Abcdefg~ + `20` `1` `14` `43` `49` `23` `26` `21` + + 1 Abcde~ A Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `32` `19` `34` `15` `48` `4` `7` `35` + + 1 Abcde~ Abcde~ Abcde~ Abcd~ Abcd~ Abcd Abcd~ Abcd~ + `40` `8` `22` `3` `25` `12` `27` `2` + + 1 Abcdef~ Abcde~ Abcd~ Abc Abcd~ Abcd~ Abcd~ Ab + Code + options(width = 58) + colonnade(df_str[c(17L, 28L, 29L, 27L, 20L, 31L, 43L, 30L, 32L, 48L, 10L, 50L, + 13L, 12L, 36L, 21L, 46L, 33L, 25L, 35L, 1L, 5L, 16L, 34L, 18L, 42L, 3L, 11L, + 40L, 26L, 37L, 7L, 39L, 6L, 4L, 19L, 8L, 45L, 14L, 24L, 23L, 2L, 47L, 9L, 49L, + 41L, 38L, 22L, 44L, 15L)], width = 1310) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `17` `28` + + 1 AbcdefghijAbcdefg AbcdefghijAbcdefghijAbcdefgh + `29` + + 1 AbcdefghijAbcdefghijAbcdefghi + `27` `20` + + 1 AbcdefghijAbcdefghijAbcdefg AbcdefghijAbcdefghij + `31` + + 1 AbcdefghijAbcdefghijAbcdefghijA + `43` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc + `30` + + 1 AbcdefghijAbcdefghijAbcdefghij + `32` + + 1 AbcdefghijAbcdefghijAbcdefghijAb + `48` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefgh + `10` + + 1 Abcdefghij + `50` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefghij + `13` `12` + + 1 AbcdefghijAbc AbcdefghijAb + `36` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef + `21` + + 1 AbcdefghijAbcdefghijA + `46` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdef + `33` + + 1 AbcdefghijAbcdefghijAbcdefghijAbc + `25` + + 1 AbcdefghijAbcdefghijAbcde + `35` `1` `5` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcde A Abcde + `16` `34` + + 1 AbcdefghijAbcdef AbcdefghijAbcdefghijAbcdefghijAbcd + `18` + + 1 AbcdefghijAbcdefgh + `42` `3` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAb Abc + `11` `40` `26` `37` `7` + + 1 AbcdefghijA AbcdefghijAbc~ Abcdefghi~ AbcdefghijA~ Abcd~ + `39` `6` `4` `19` `8` `45` `14` `24` `23` + + 1 Abcde~ Abcdef Abcd Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + `2` `47` `9` `49` `41` `38` `22` `44` `15` + + 1 Ab Abcde~ Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + Code + options(width = 47) + colonnade(df_str[c(1L, 26L, 20L, 12L, 49L, 16L, 24L, 4L, 15L, 47L, 8L, 11L, 14L, + 50L, 17L, 2L, 44L, 30L, 36L, 45L, 25L, 38L, 18L, 29L, 5L, 13L, 3L, 23L, 48L, + 40L, 34L, 22L, 39L, 33L, 27L, 7L, 19L, 10L, 37L, 6L, 35L, 46L, 31L, 41L, 43L, + 28L, 42L, 32L, 21L, 9L)], width = 484) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `1` `26` + + 1 A AbcdefghijAbcdefghijAbcdef + `20` `12` + + 1 AbcdefghijAbcdefghij AbcdefghijAb + `49` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcd~ + `16` `24` + + 1 AbcdefghijAbcdef AbcdefghijAbcdefghijAbcd + `4` + + 1 Abcd + `15` `47` `8` `11` `14` `50` `17` + + 1 Abcde~ Abcdef~ Abcd~ Abcd~ Abcd~ Abcde~ Abcd~ + `2` `44` `30` `36` `45` `25` `38` + + 1 Ab Abcde~ Abcde~ Abcde~ Abcde~ Abcd~ Abcd~ + `18` `29` `5` `13` `3` `23` `48` + + 1 Abcde~ Abcde~ Abcde Abcde~ Abc Abcd~ Abcde~ + `40` `34` `22` `39` `33` `27` `7` + + 1 Abcde~ Abcde~ Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ + `19` `10` `37` `6` `35` `46` `31` + + 1 Abcde~ Abcde~ Abcde~ Abcd~ Abcd~ Abcde~ Abcd~ + `41` `43` `28` `42` `32` `21` `9` + + 1 Abcde~ Abcde~ Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ + Code + options(width = 55) + colonnade(df_str[c(6L, 49L, 26L, 45L, 25L, 15L, 31L, 20L, 21L, 44L, 23L, 48L, + 37L, 36L, 5L, 43L, 11L, 14L, 13L, 39L, 16L, 12L, 4L, 18L, 42L, 3L, 10L, 28L, + 40L, 24L, 29L, 17L, 35L, 47L, 2L, 38L, 34L, 9L, 7L, 8L, 50L, 33L, 32L, 27L, + 46L, 19L, 22L, 41L, 30L, 1L)], width = 779) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `6` + + 1 Abcdef + `49` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefghi + `26` + + 1 AbcdefghijAbcdefghijAbcdef + `45` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcde + `25` `15` + + 1 AbcdefghijAbcdefghijAbcde AbcdefghijAbcde + `31` `20` + + 1 AbcdefghijAbcdefghijAbcdefghijA AbcdefghijAbcdefghij + `21` + + 1 AbcdefghijAbcdefghijA + `44` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcd + `23` + + 1 AbcdefghijAbcdefghijAbc + `48` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefgh + `37` `36` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefg AbcdefghijAbcd~ + `5` `43` `11` `14` `13` `39` `16` `12` `4` + + 1 Abcde Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd + `18` `42` `3` `10` `28` `40` `24` `29` `17` + + 1 Abcd~ Abcd~ Abc Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + `35` `47` `2` `38` `34` `9` `7` `8` `50` + + 1 Abcd~ Abcd~ Ab Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + `33` `32` `27` `46` `19` `22` `41` `30` `1` + + 1 Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ A + Code + options(width = 46) + colonnade(df_str[c(38L, 42L, 41L, 10L, 40L, 11L, 27L, 9L, 17L, 37L, 46L, 13L, + 36L, 18L, 31L, 20L, 39L, 12L, 44L, 33L, 50L, 34L, 26L, 32L, 23L, 30L, 29L, + 21L, 4L, 49L, 19L, 25L, 3L, 6L, 15L, 14L, 43L, 48L, 8L, 22L, 1L, 2L, 45L, 35L, + 16L, 5L, 47L, 28L, 24L, 7L)], width = 694) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `38` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh + `42` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAb + `41` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA + `10` + + 1 Abcdefghij + `40` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghij + `11` `27` + + 1 AbcdefghijA AbcdefghijAbcdefghijAbcdefg + `9` `17` + + 1 Abcdefghi AbcdefghijAbcdefg + `37` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefg + `46` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc~ + `13` + + 1 AbcdefghijAbc + `36` `18` `31` + + 1 AbcdefghijAbcdef~ Abcdefghi~ AbcdefghijAbcd~ + `20` `39` `12` `44` `33` `50` `34` + + 1 Abcde~ Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `26` `32` `23` `30` `29` `21` `4` + + 1 Abcde~ Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ Abcd + `49` `19` `25` `3` `6` `15` `14` + + 1 Abcdef~ Abcde~ Abcd~ Abc Abcd~ Abcd~ Abcd~ + `43` `48` `8` `22` `1` `2` `45` + + 1 Abcde~ Abcde~ Abcde~ Abcd~ A Ab Abcd~ + `35` `16` `5` `47` `28` `24` `7` + + 1 Abcde~ Abcde~ Abcde Abcde~ Abcd~ Abcd~ Abcd~ + diff --git a/tests/testthat/_snaps/format_multi_fuzz_2.md b/tests/testthat/_snaps/format_multi_fuzz_2.md new file mode 100644 index 000000000..15d2c86b8 --- /dev/null +++ b/tests/testthat/_snaps/format_multi_fuzz_2.md @@ -0,0 +1,1221 @@ +# strings with varying widths + + Code + options(width = 54) + colonnade(df_str[c(28L, 34L, 16L, 29L, 47L, 25L, 42L, 27L, 44L, 20L, 14L, 36L, + 43L, 41L, 26L, 45L, 22L, 9L, 13L, 32L, 31L, 12L, 19L, 48L, 49L, 35L, 3L, 11L, + 23L, 24L, 40L, 15L, 38L, 10L, 46L, 5L, 50L, 18L, 21L, 6L, 30L, 2L, 7L, 1L, 4L, + 8L, 17L, 33L, 39L, 37L)], width = 516) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `28` + + 1 AbcdefghijAbcdefghijAbcdefgh + `34` `16` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcd AbcdefghijAbcdef + `29` + + 1 AbcdefghijAbcdefghijAbcdefghi + `47` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefg + `25` `42` `27` `44` `20` + + 1 AbcdefghijAbcdefghijAbcde Abcde~ Abcde~ Abcde~ Abcd~ + `14` `36` `43` `41` `26` `45` `22` `9` + + 1 Abcde~ Abcde~ Abcde~ Abcde~ Abcd~ Abcde~ Abcd~ Abcd~ + `13` `32` `31` `12` `19` `48` `49` `35` + + 1 Abcde~ Abcde~ Abcde~ Abcd~ Abcd~ Abcde~ Abcde~ Abcd~ + `3` `11` `23` `24` `40` `15` `38` `10` + + 1 Abc Abcde~ Abcde~ Abcde~ Abcde~ Abcd~ Abcde~ Abcd~ + `46` `5` `50` `18` `21` `6` `30` `2` + + 1 Abcdef~ Abcde Abcdef~ Abcde~ Abcd~ Abcd~ Abcd~ Ab + `7` `1` `4` `8` `17` `33` `39` `37` + + 1 Abcde~ A Abcd Abcde~ Abcd~ Abcde~ Abcde~ Abcde~ + Code + options(width = 42) + colonnade(df_str[c(28L, 41L, 12L, 29L, 13L, 43L, 24L, 50L, 48L, 35L, 44L, 21L, + 33L, 45L, 47L, 34L, 25L, 14L, 18L, 23L, 7L, 3L, 42L, 36L, 11L, 2L, 20L, 31L, + 1L, 4L, 38L, 9L, 27L, 40L, 32L, 17L, 6L, 49L, 16L, 19L, 15L, 22L, 39L, 10L, + 46L, 5L, 30L, 8L, 26L, 37L)], width = 1365) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `28` + + 1 AbcdefghijAbcdefghijAbcdefgh + `41` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi~ + `12` + + 1 AbcdefghijAb + `29` + + 1 AbcdefghijAbcdefghijAbcdefghi + `13` + + 1 AbcdefghijAbc + `43` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi~ + `24` + + 1 AbcdefghijAbcdefghijAbcd + `50` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi~ + `48` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi~ + `35` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcde + `44` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi~ + `21` + + 1 AbcdefghijAbcdefghijA + `33` + + 1 AbcdefghijAbcdefghijAbcdefghijAbc + `45` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi~ + `47` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi~ + `34` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcd + `25` `14` + + 1 AbcdefghijAbcdefghijAbcde AbcdefghijAbcd + `18` + + 1 AbcdefghijAbcdefgh + `23` `7` `3` + + 1 AbcdefghijAbcdefghijAbc Abcdefg Abc + `42` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi~ + `36` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef + `11` `2` `20` + + 1 AbcdefghijA Ab AbcdefghijAbcdefghij + `31` `1` + + 1 AbcdefghijAbcdefghijAbcdefghijA A + `4` + + 1 Abcd + `38` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh + `9` `27` + + 1 Abcdefghi AbcdefghijAbcdefghijAbcdefg + `40` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghij + `32` + + 1 AbcdefghijAbcdefghijAbcdefghijAb + `17` `6` + + 1 AbcdefghijAbcdefg Abcdef + `49` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi~ + `16` `19` + + 1 AbcdefghijAbcdef AbcdefghijAbcdefghi + `15` `22` `39` `10` + + 1 AbcdefghijAbcde Abcdefg~ Abcdefgh~ Abcd~ + `46` `5` `30` `8` `26` `37` + + 1 Abcdef~ Abcde Abcdef~ Abcd~ Abcd~ Abcde~ + Code + options(width = 39) + colonnade(df_str[c(40L, 17L, 13L, 23L, 22L, 2L, 18L, 3L, 29L, 45L, 14L, 19L, + 33L, 37L, 47L, 43L, 44L, 10L, 31L, 27L, 34L, 35L, 41L, 21L, 4L, 25L, 38L, 48L, + 9L, 24L, 26L, 39L, 20L, 36L, 42L, 16L, 6L, 11L, 7L, 12L, 1L, 46L, 15L, 5L, 8L, + 50L, 32L, 30L, 49L, 28L)], width = 934) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `40` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `17` `13` + + 1 AbcdefghijAbcdefg AbcdefghijAbc + `23` + + 1 AbcdefghijAbcdefghijAbc + `22` `2` + + 1 AbcdefghijAbcdefghijAb Ab + `18` `3` + + 1 AbcdefghijAbcdefgh Abc + `29` + + 1 AbcdefghijAbcdefghijAbcdefghi + `45` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `14` `19` + + 1 AbcdefghijAbcd AbcdefghijAbcdefghi + `33` + + 1 AbcdefghijAbcdefghijAbcdefghijAbc + `37` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefg + `47` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `43` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `44` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `10` + + 1 Abcdefghij + `31` + + 1 AbcdefghijAbcdefghijAbcdefghijA + `27` + + 1 AbcdefghijAbcdefghijAbcdefg + `34` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcd + `35` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcde + `41` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef~ + `21` `4` `25` + + 1 AbcdefghijAbcdefghijA Abcd Abcdefgh~ + `38` `48` `9` `24` `26` `39` + + 1 Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `20` `36` `42` `16` `6` `11` + + 1 Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `7` `12` `1` `46` `15` `5` + + 1 Abcde~ Abcd~ A Abcde~ Abcd~ Abcde + `8` `50` `32` `30` `49` `28` + + 1 Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + Code + options(width = 32) + colonnade(df_str[c(11L, 36L, 17L, 14L, 31L, 35L, 23L, 13L, 6L, 44L, 45L, 22L, + 21L, 18L, 33L, 10L, 43L, 2L, 46L, 34L, 3L, 19L, 1L, 38L, 9L, 37L, 5L, 8L, 25L, + 49L, 27L, 29L, 15L, 39L, 24L, 40L, 48L, 26L, 47L, 42L, 41L, 12L, 28L, 30L, 7L, + 16L, 4L, 50L, 20L, 32L)], width = 565) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `11` + + 1 AbcdefghijA + `36` + + 1 AbcdefghijAbcdefghijAbcdefghi~ + `17` + + 1 AbcdefghijAbcdefg + `14` + + 1 AbcdefghijAbcd + `31` + + 1 AbcdefghijAbcdefghijAbcdefghi~ + `35` + + 1 AbcdefghijAbcdefghijAbcdefghi~ + `23` + + 1 AbcdefghijAbcdefghijAbc + `13` `6` + + 1 AbcdefghijAbc Abcdef + `44` + + 1 AbcdefghijAbcdefghijAbcdefghi~ + `45` + + 1 AbcdefghijAbcdefghijAbcdefghi~ + `22` `21` `18` `33` + + 1 Abcdef~ Abcdef~ Abcde~ Abcdef~ + `10` `43` `2` `46` `34` + + 1 Abcde~ Abcd~ Ab Abcd~ Abcd~ + `3` `19` `1` `38` `9` + + 1 Abc Abcde~ A Abcd~ Abcd~ + `37` `5` `8` `25` `49` + + 1 Abcde~ Abcde Abcd~ Abcd~ Abcd~ + `27` `29` `15` `39` `24` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `40` `48` `26` `47` `42` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `41` `12` `28` `30` `7` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `16` `4` `50` `20` `32` + + 1 Abcde~ Abcd Abcd~ Abcd~ Abcd~ + Code + options(width = 35) + colonnade(df_str[c(18L, 46L, 11L, 43L, 31L, 47L, 48L, 44L, 50L, 15L, 28L, 33L, + 13L, 4L, 22L, 3L, 37L, 32L, 40L, 9L, 25L, 16L, 45L, 23L, 21L, 6L, 49L, 36L, + 27L, 38L, 14L, 34L, 8L, 24L, 29L, 1L, 12L, 2L, 20L, 17L, 35L, 5L, 19L, 30L, + 7L, 26L, 42L, 41L, 39L, 10L)], width = 1121) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `18` + + 1 AbcdefghijAbcdefgh + `46` + + 1 AbcdefghijAbcdefghijAbcdefghijAb~ + `11` + + 1 AbcdefghijA + `43` + + 1 AbcdefghijAbcdefghijAbcdefghijAb~ + `31` + + 1 AbcdefghijAbcdefghijAbcdefghijA + `47` + + 1 AbcdefghijAbcdefghijAbcdefghijAb~ + `48` + + 1 AbcdefghijAbcdefghijAbcdefghijAb~ + `44` + + 1 AbcdefghijAbcdefghijAbcdefghijAb~ + `50` + + 1 AbcdefghijAbcdefghijAbcdefghijAb~ + `15` + + 1 AbcdefghijAbcde + `28` + + 1 AbcdefghijAbcdefghijAbcdefgh + `33` + + 1 AbcdefghijAbcdefghijAbcdefghijAbc + `13` `4` + + 1 AbcdefghijAbc Abcd + `22` `3` + + 1 AbcdefghijAbcdefghijAb Abc + `37` + + 1 AbcdefghijAbcdefghijAbcdefghijAb~ + `32` + + 1 AbcdefghijAbcdefghijAbcdefghijAb + `40` + + 1 AbcdefghijAbcdefghijAbcdefghijAb~ + `9` + + 1 Abcdefghi + `25` + + 1 AbcdefghijAbcdefghijAbcde + `16` + + 1 AbcdefghijAbcdef + `45` + + 1 AbcdefghijAbcdefghijAbcdefghijAb~ + `23` + + 1 AbcdefghijAbcdefghijAbc + `21` `6` + + 1 AbcdefghijAbcdefghijA Abcdef + `49` + + 1 AbcdefghijAbcdefghijAbcdefghijAb~ + `36` + + 1 AbcdefghijAbcdefghijAbcdefghijAb~ + `27` + + 1 AbcdefghijAbcdefghijAbcdefg + `38` + + 1 AbcdefghijAbcdefghijAbcdefghijAb~ + `14` + + 1 AbcdefghijAbcd + `34` + + 1 AbcdefghijAbcdefghijAbcdefghijAb~ + `8` `24` `29` + + 1 Abcdefgh Abcdefghij~ AbcdefghijA~ + `1` `12` `2` `20` `17` + + 1 A Abcde~ Ab Abcdef~ Abcde~ + `35` `5` `19` `30` `7` + + 1 Abcdef~ Abcde Abcde~ Abcde~ Abcd~ + `26` `42` `41` `39` `10` + + 1 Abcde~ Abcde~ Abcde~ Abcde~ Abcd~ + Code + options(width = 32) + colonnade(df_str[c(43L, 1L, 3L, 15L, 28L, 12L, 46L, 34L, 31L, 7L, 11L, 4L, 44L, + 8L, 9L, 5L, 36L, 22L, 17L, 39L, 18L, 45L, 37L, 13L, 29L, 6L, 30L, 16L, 20L, + 10L, 19L, 26L, 33L, 40L, 35L, 48L, 38L, 25L, 2L, 47L, 42L, 41L, 27L, 14L, 21L, + 24L, 50L, 49L, 23L, 32L)], width = 446) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `43` + + 1 AbcdefghijAbcdefghijAbcdefghi~ + `1` `3` `15` + + 1 A Abc AbcdefghijAbcde + `28` + + 1 AbcdefghijAbcdefghijAbcdefgh + `12` + + 1 AbcdefghijAb + `46` + + 1 AbcdefghijAbcdefghijAbcdefghi~ + `34` `31` `7` + + 1 AbcdefghijA~ Abcdefghij~ Abcd~ + `11` `4` `44` `8` `9` + + 1 Abcde~ Abcd Abcd~ Abcd~ Abcd~ + `5` `36` `22` `17` `39` + + 1 Abcde Abcde~ Abcd~ Abcd~ Abcd~ + `18` `45` `37` `13` `29` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `6` `30` `16` `20` `10` + + 1 Abcdef Abcd~ Abcd~ Abcd~ Abcd~ + `19` `26` `33` `40` `35` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `48` `38` `25` `2` `47` + + 1 Abcde~ Abcd~ Abcd~ Ab Abcd~ + `42` `41` `27` `14` `21` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `24` `50` `49` `23` `32` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + Code + options(width = 31) + colonnade(df_str[c(37L, 46L, 21L, 3L, 16L, 39L, 34L, 33L, 10L, 17L, 19L, 36L, + 45L, 49L, 11L, 50L, 14L, 29L, 44L, 13L, 30L, 38L, 32L, 40L, 42L, 1L, 31L, 41L, + 7L, 23L, 35L, 28L, 6L, 25L, 2L, 9L, 12L, 15L, 5L, 18L, 20L, 27L, 43L, 8L, 47L, + 4L, 48L, 24L, 26L, 22L)], width = 1166) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `37` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `46` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `21` `3` + + 1 AbcdefghijAbcdefghijA Abc + `16` + + 1 AbcdefghijAbcdef + `39` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `34` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `33` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `10` `17` + + 1 Abcdefghij AbcdefghijAbcdefg + `19` + + 1 AbcdefghijAbcdefghi + `36` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `45` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `49` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `11` + + 1 AbcdefghijA + `50` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `14` + + 1 AbcdefghijAbcd + `29` + + 1 AbcdefghijAbcdefghijAbcdefghi + `44` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `13` + + 1 AbcdefghijAbc + `30` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `38` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `32` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `40` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `42` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `1` + + 1 A + `31` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `41` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `7` + + 1 Abcdefg + `23` + + 1 AbcdefghijAbcdefghijAbc + `35` + + 1 AbcdefghijAbcdefghijAbcdefgh~ + `28` + + 1 AbcdefghijAbcdefghijAbcdefgh + `6` + + 1 Abcdef + `25` + + 1 AbcdefghijAbcdefghijAbcde + `2` `9` `12` + + 1 Ab Abcdefghi AbcdefghijAb + `15` `5` + + 1 AbcdefghijAbcde Abcde + `18` + + 1 AbcdefghijAbcdefgh + `20` + + 1 AbcdefghijAbcdefghij + `27` `43` `8` `47` + + 1 Abcdef~ Abcdef~ Abcde~ Abcde~ + `4` `48` `24` `26` `22` + + 1 Abcd Abcd~ Abcd~ Abcd~ Abcd~ + Code + options(width = 58) + colonnade(df_str[c(31L, 39L, 40L, 30L, 10L, 21L, 9L, 16L, 46L, 25L, 15L, 24L, + 3L, 50L, 35L, 1L, 12L, 34L, 48L, 4L, 29L, 23L, 37L, 36L, 28L, 43L, 11L, 17L, + 32L, 8L, 41L, 13L, 44L, 7L, 38L, 26L, 33L, 20L, 19L, 2L, 18L, 49L, 27L, 47L, + 22L, 14L, 6L, 5L, 45L, 42L)], width = 546) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `31` + + 1 AbcdefghijAbcdefghijAbcdefghijA + `39` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi + `40` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghij + `30` `10` + + 1 AbcdefghijAbcdefghijAbcdefghij Abcdefghij + `21` `9` `16` + + 1 AbcdefghijAbcdefghijA Abcdefghi AbcdefghijAbcdef + `46` `25` `15` `24` `3` `50` + + 1 AbcdefghijA~ Abcdefgh~ Abcde~ Abcdef~ Abc AbcdefghijA~ + `35` `1` `12` `34` `48` `4` `29` `23` `37` + + 1 Abcde~ A Abcde~ Abcde~ Abcd~ Abcd Abcd~ Abcd~ Abcd~ + `36` `28` `43` `11` `17` `32` `8` `41` `13` + + 1 Abcde~ Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + `44` `7` `38` `26` `33` `20` `19` `2` `18` + + 1 Abcde~ Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ Ab Abcd~ + `49` `27` `47` `22` `14` `6` `5` `45` `42` + + 1 Abcde~ Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ Abcde Abcd~ Abcd~ + Code + options(width = 57) + colonnade(df_str[c(43L, 21L, 41L, 48L, 22L, 25L, 2L, 8L, 1L, 24L, 6L, 39L, 38L, + 20L, 49L, 45L, 47L, 12L, 9L, 13L, 36L, 26L, 44L, 11L, 46L, 28L, 7L, 18L, 50L, + 16L, 29L, 30L, 4L, 23L, 17L, 40L, 33L, 14L, 27L, 19L, 34L, 32L, 3L, 37L, 15L, + 10L, 5L, 35L, 31L, 42L)], width = 1035) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `43` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc + `21` + + 1 AbcdefghijAbcdefghijA + `41` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA + `48` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefgh + `22` `25` `2` + + 1 AbcdefghijAbcdefghijAb AbcdefghijAbcdefghijAbcde Ab + `8` `1` `24` `6` + + 1 Abcdefgh A AbcdefghijAbcdefghijAbcd Abcdef + `39` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi + `38` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh + `20` + + 1 AbcdefghijAbcdefghij + `49` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefghi + `45` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcde + `47` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefg + `12` `9` `13` + + 1 AbcdefghijAb Abcdefghi AbcdefghijAbc + `36` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef + `26` + + 1 AbcdefghijAbcdefghijAbcdef + `44` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcd + `11` `46` `28` `7` `18` `50` `16` `29` `30` + + 1 Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + `4` `23` `17` `40` `33` `14` `27` `19` `34` + + 1 Abcd Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + `32` `3` `37` `15` `10` `5` `35` `31` `42` + + 1 Abcde~ Abc Abcde~ Abcd~ Abcd~ Abcde Abcd~ Abcd~ Abcd~ + Code + options(width = 33) + colonnade(df_str[c(40L, 6L, 25L, 5L, 26L, 17L, 19L, 2L, 11L, 34L, 45L, 24L, 22L, + 44L, 35L, 7L, 4L, 49L, 1L, 36L, 12L, 41L, 39L, 13L, 48L, 27L, 18L, 30L, 42L, + 28L, 3L, 46L, 21L, 20L, 16L, 29L, 50L, 10L, 9L, 8L, 47L, 31L, 14L, 38L, 33L, + 32L, 43L, 23L, 15L, 37L)], width = 1217) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `40` + + 1 AbcdefghijAbcdefghijAbcdefghij~ + `6` + + 1 Abcdef + `25` `5` + + 1 AbcdefghijAbcdefghijAbcde Abcde + `26` + + 1 AbcdefghijAbcdefghijAbcdef + `17` + + 1 AbcdefghijAbcdefg + `19` `2` + + 1 AbcdefghijAbcdefghi Ab + `11` + + 1 AbcdefghijA + `34` + + 1 AbcdefghijAbcdefghijAbcdefghij~ + `45` + + 1 AbcdefghijAbcdefghijAbcdefghij~ + `24` + + 1 AbcdefghijAbcdefghijAbcd + `22` + + 1 AbcdefghijAbcdefghijAb + `44` + + 1 AbcdefghijAbcdefghijAbcdefghij~ + `35` + + 1 AbcdefghijAbcdefghijAbcdefghij~ + `7` `4` + + 1 Abcdefg Abcd + `49` + + 1 AbcdefghijAbcdefghijAbcdefghij~ + `1` + + 1 A + `36` + + 1 AbcdefghijAbcdefghijAbcdefghij~ + `12` + + 1 AbcdefghijAb + `41` + + 1 AbcdefghijAbcdefghijAbcdefghij~ + `39` + + 1 AbcdefghijAbcdefghijAbcdefghij~ + `13` + + 1 AbcdefghijAbc + `48` + + 1 AbcdefghijAbcdefghijAbcdefghij~ + `27` + + 1 AbcdefghijAbcdefghijAbcdefg + `18` + + 1 AbcdefghijAbcdefgh + `30` + + 1 AbcdefghijAbcdefghijAbcdefghij + `42` + + 1 AbcdefghijAbcdefghijAbcdefghij~ + `28` + + 1 AbcdefghijAbcdefghijAbcdefgh + `3` + + 1 Abc + `46` + + 1 AbcdefghijAbcdefghijAbcdefghij~ + `21` + + 1 AbcdefghijAbcdefghijA + `20` + + 1 AbcdefghijAbcdefghij + `16` + + 1 AbcdefghijAbcdef + `29` + + 1 AbcdefghijAbcdefghijAbcdefghi + `50` + + 1 AbcdefghijAbcdefghijAbcdefghij~ + `10` `9` `8` + + 1 Abcdefghij Abcdefghi Abcdefgh + `47` `31` `14` `38` `33` + + 1 Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ + `32` `43` `23` `15` `37` + + 1 Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ + Code + options(width = 32) + colonnade(df_str[c(43L, 23L, 22L, 11L, 6L, 26L, 48L, 17L, 7L, 42L, 36L, 21L, + 35L, 50L, 13L, 19L, 29L, 8L, 15L, 4L, 2L, 27L, 49L, 47L, 30L, 31L, 25L, 28L, + 46L, 12L, 32L, 39L, 24L, 10L, 45L, 5L, 37L, 14L, 40L, 20L, 41L, 44L, 33L, 18L, + 38L, 3L, 1L, 34L, 16L, 9L)], width = 770) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `43` + + 1 AbcdefghijAbcdefghijAbcdefghi~ + `23` + + 1 AbcdefghijAbcdefghijAbc + `22` + + 1 AbcdefghijAbcdefghijAb + `11` `6` + + 1 AbcdefghijA Abcdef + `26` + + 1 AbcdefghijAbcdefghijAbcdef + `48` + + 1 AbcdefghijAbcdefghijAbcdefghi~ + `17` `7` + + 1 AbcdefghijAbcdefg Abcdefg + `42` + + 1 AbcdefghijAbcdefghijAbcdefghi~ + `36` + + 1 AbcdefghijAbcdefghijAbcdefghi~ + `21` + + 1 AbcdefghijAbcdefghijA + `35` + + 1 AbcdefghijAbcdefghijAbcdefghi~ + `50` + + 1 AbcdefghijAbcdefghijAbcdefghi~ + `13` + + 1 AbcdefghijAbc + `19` + + 1 AbcdefghijAbcdefghi + `29` + + 1 AbcdefghijAbcdefghijAbcdefghi + `8` `15` `4` + + 1 Abcdefgh AbcdefghijAbcde Abcd + `2` + + 1 Ab + `27` + + 1 AbcdefghijAbcdefghijAbcdefg + `49` + + 1 AbcdefghijAbcdefghijAbcdefghi~ + `47` `30` + + 1 AbcdefghijAbcd~ AbcdefghijAbc~ + `31` `25` `28` `46` `12` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `32` `39` `24` `10` `45` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `5` `37` `14` `40` `20` + + 1 Abcde Abcde~ Abcd~ Abcd~ Abcd~ + `41` `44` `33` `18` `38` + + 1 Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + `3` `1` `34` `16` `9` + + 1 Abc A Abcde~ Abcd~ Abcd~ + Code + options(width = 46) + colonnade(df_str[c(5L, 24L, 43L, 46L, 35L, 39L, 18L, 26L, 8L, 27L, 2L, 50L, 6L, + 14L, 29L, 47L, 9L, 16L, 36L, 4L, 13L, 41L, 3L, 28L, 37L, 33L, 38L, 31L, 34L, + 19L, 42L, 32L, 1L, 45L, 15L, 7L, 11L, 49L, 23L, 12L, 48L, 20L, 21L, 44L, 25L, + 10L, 22L, 30L, 40L, 17L)], width = 1439) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `5` `24` + + 1 Abcde AbcdefghijAbcdefghijAbcd + `43` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc + `46` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc~ + `35` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcde + `39` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi + `18` + + 1 AbcdefghijAbcdefgh + `26` `8` + + 1 AbcdefghijAbcdefghijAbcdef Abcdefgh + `27` `2` + + 1 AbcdefghijAbcdefghijAbcdefg Ab + `50` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc~ + `6` `14` + + 1 Abcdef AbcdefghijAbcd + `29` + + 1 AbcdefghijAbcdefghijAbcdefghi + `47` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc~ + `9` `16` + + 1 Abcdefghi AbcdefghijAbcdef + `36` `4` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdef Abcd + `13` + + 1 AbcdefghijAbc + `41` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA + `3` `28` + + 1 Abc AbcdefghijAbcdefghijAbcdefgh + `37` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefg + `33` + + 1 AbcdefghijAbcdefghijAbcdefghijAbc + `38` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh + `31` + + 1 AbcdefghijAbcdefghijAbcdefghijA + `34` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcd + `19` + + 1 AbcdefghijAbcdefghi + `42` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAb + `32` `1` + + 1 AbcdefghijAbcdefghijAbcdefghijAb A + `45` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc~ + `15` `7` `11` + + 1 AbcdefghijAbcde Abcdefg AbcdefghijA + `49` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc~ + `23` `12` + + 1 AbcdefghijAbcdefghijAbc AbcdefghijAb + `48` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbc~ + `20` `21` + + 1 AbcdefghijAbcdefghij AbcdefghijAbcdefghijA + `44` `25` `10` `22` `30` `40` `17` + + 1 Abcde~ Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ + Code + options(width = 52) + colonnade(df_str[c(7L, 44L, 19L, 21L, 18L, 35L, 23L, 50L, 33L, 37L, 25L, 26L, + 10L, 39L, 2L, 47L, 42L, 14L, 9L, 41L, 45L, 6L, 4L, 11L, 24L, 43L, 32L, 3L, + 38L, 5L, 49L, 27L, 17L, 8L, 22L, 40L, 12L, 15L, 1L, 28L, 31L, 29L, 13L, 48L, + 34L, 36L, 30L, 20L, 16L, 46L)], width = 1065) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `7` + + 1 Abcdefg + `44` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcd + `19` `21` + + 1 AbcdefghijAbcdefghi AbcdefghijAbcdefghijA + `18` + + 1 AbcdefghijAbcdefgh + `35` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcde + `23` + + 1 AbcdefghijAbcdefghijAbc + `50` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefghij + `33` + + 1 AbcdefghijAbcdefghijAbcdefghijAbc + `37` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefg + `25` + + 1 AbcdefghijAbcdefghijAbcde + `26` `10` + + 1 AbcdefghijAbcdefghijAbcdef Abcdefghij + `39` `2` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi Ab + `47` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcdefg + `42` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAb + `14` `9` + + 1 AbcdefghijAbcd Abcdefghi + `41` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijA + `45` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghijAbcde + `6` `4` `11` `24` `43` + + 1 Abcdef Abcd AbcdefghijA Abcdefghi~ AbcdefghijAbc~ + `32` `3` `38` `5` `49` `27` `17` `8` + + 1 Abcde~ Abc Abcde~ Abcde Abcde~ Abcd~ Abcd~ Abcd~ + `22` `40` `12` `15` `1` `28` `31` `29` + + 1 Abcde~ Abcde~ Abcde~ Abcd~ A Abcd~ Abcd~ Abcd~ + `13` `48` `34` `36` `30` `20` `16` `46` + + 1 Abcde~ Abcde~ Abcde~ Abcd~ Abcd~ Abcd~ Abcd~ Abcd~ + Code + options(width = 35) + colonnade(df_str[c(38L, 18L, 23L, 36L, 35L, 20L, 44L, 19L, 13L, 41L, 31L, 7L, + 11L, 29L, 2L, 14L, 26L, 46L, 40L, 45L, 9L, 34L, 33L, 22L, 1L, 17L, 28L, 10L, + 21L, 30L, 47L, 49L, 6L, 12L, 4L, 25L, 32L, 15L, 43L, 24L, 48L, 3L, 37L, 50L, + 42L, 39L, 16L, 8L, 27L, 5L)], width = 393) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `38` + + 1 AbcdefghijAbcdefghijAbcdefghijAb~ + `18` + + 1 AbcdefghijAbcdefgh + `23` `36` `35` + + 1 Abcdefgh~ Abcdefghij~ Abcdefghij~ + `20` `44` `19` `13` `41` + + 1 Abcde~ Abcdef~ Abcd~ Abcd~ Abcde~ + `31` `7` `11` `29` `2` + + 1 Abcdef~ Abcde~ Abcd~ Abcde~ Ab + `14` `26` `46` `40` `45` + + 1 Abcde~ Abcde~ Abcde~ Abcde~ Abcd~ + `9` `34` `33` `22` `1` + + 1 Abcde~ Abcdef~ Abcde~ Abcd~ A + `17` `28` `10` `21` `30` + + 1 Abcde~ Abcdef~ Abcd~ Abcd~ Abcde~ + `47` `49` `6` `12` `4` + + 1 Abcdef~ Abcdef~ Abcd~ Abcd~ Abcd + `25` `32` `15` `43` `24` + + 1 Abcde~ Abcdef~ Abcd~ Abcde~ Abcd~ + `48` `3` `37` `50` `42` + + 1 Abcde~ Abc Abcde~ Abcde~ Abcde~ + `39` `16` `8` `27` `5` + + 1 Abcdef~ Abcde~ Abcd~ Abcde~ Abcde + Code + options(width = 41) + colonnade(df_str[c(22L, 9L, 11L, 26L, 19L, 16L, 32L, 25L, 1L, 30L, 31L, 6L, 24L, + 10L, 39L, 21L, 50L, 7L, 29L, 12L, 46L, 43L, 15L, 35L, 20L, 40L, 49L, 38L, 36L, + 48L, 34L, 3L, 8L, 4L, 27L, 42L, 44L, 33L, 45L, 18L, 5L, 2L, 13L, 47L, 28L, + 17L, 37L, 14L, 41L, 23L)], width = 999) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + `22` `9` + + 1 AbcdefghijAbcdefghijAb Abcdefghi + `11` `26` + + 1 AbcdefghijA AbcdefghijAbcdefghijAbcdef + `19` `16` + + 1 AbcdefghijAbcdefghi AbcdefghijAbcdef + `32` + + 1 AbcdefghijAbcdefghijAbcdefghijAb + `25` `1` + + 1 AbcdefghijAbcdefghijAbcde A + `30` + + 1 AbcdefghijAbcdefghijAbcdefghij + `31` `6` + + 1 AbcdefghijAbcdefghijAbcdefghijA Abcdef + `24` `10` + + 1 AbcdefghijAbcdefghijAbcd Abcdefghij + `39` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefghi + `21` + + 1 AbcdefghijAbcdefghijA + `50` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh~ + `7` `29` + + 1 Abcdefg AbcdefghijAbcdefghijAbcdefghi + `12` + + 1 AbcdefghijAb + `46` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh~ + `43` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh~ + `15` + + 1 AbcdefghijAbcde + `35` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcde + `20` + + 1 AbcdefghijAbcdefghij + `40` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh~ + `49` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh~ + `38` + + 1 AbcdefghijAbcdefghijAbcdefghijAbcdefgh + `36` `48` `34` `3` + + 1 Abcdefghij~ Abcdefghij~ Abcdefgh~ Abc + `8` `4` `27` `42` `44` `33` + + 1 Abcde~ Abcd Abcde~ Abcde~ Abcde~ Abcd~ + `45` `18` `5` `2` `13` `47` + + 1 Abcdef~ Abcde~ Abcde Ab Abcd~ Abcde~ + `28` `17` `37` `14` `41` `23` + + 1 Abcde~ Abcde~ Abcde~ Abcd~ Abcde~ Abcd~ + diff --git a/tests/testthat/_snaps/tbl-format.md b/tests/testthat/_snaps/tbl-format.md index 8dce271ef..3ad4a4d27 100644 --- a/tests/testthat/_snaps/tbl-format.md +++ b/tests/testthat/_snaps/tbl-format.md @@ -232,3 +232,28 @@ 10 19.2 6 168. 123 3.92 3.44 18.3 1 0 4 4 # ... with 22 more rows +--- + + Code + print(as_tbl(mtcars), width = 40, n_extra = 1) + Condition + Warning: + The `n_extra` argument of `print()` is deprecated as of pillar 1.6.2. + Please use the `max_extra_cols` argument instead. + Output + # A data frame: 32 x 11 + mpg cyl disp hp drat wt + * + 1 21 6 160 110 3.9 2.62 + 2 21 6 160 110 3.9 2.88 + 3 22.8 4 108 93 3.85 2.32 + 4 21.4 6 258 110 3.08 3.22 + 5 18.7 8 360 175 3.15 3.44 + 6 18.1 6 225 105 2.76 3.46 + 7 14.3 8 360 245 3.21 3.57 + 8 24.4 4 147. 62 3.69 3.19 + 9 22.8 4 141. 95 3.92 3.15 + 10 19.2 6 168. 123 3.92 3.44 + # ... with 22 more rows, and 5 more + # variable: qsec , ... + diff --git a/tests/testthat/_snaps/testthat_3.1.2-unicode/format_multi.md b/tests/testthat/_snaps/testthat_3.1.2-unicode/format_multi.md index 7c174a562..27d76d870 100644 --- a/tests/testthat/_snaps/testthat_3.1.2-unicode/format_multi.md +++ b/tests/testthat/_snaps/testthat_3.1.2-unicode/format_multi.md @@ -112,7 +112,8 @@ Code colonnade(list(a_very_long_column_name = 0), width = 15) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output diff --git a/tests/testthat/_snaps/testthat_3.1.2/format_multi.md b/tests/testthat/_snaps/testthat_3.1.2/format_multi.md index 491bc0fec..012219b45 100644 --- a/tests/testthat/_snaps/testthat_3.1.2/format_multi.md +++ b/tests/testthat/_snaps/testthat_3.1.2/format_multi.md @@ -2,22 +2,26 @@ Code colonnade(x, width = 4) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Code colonnade(x, width = 5) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Code colonnade(x, width = 6) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Code colonnade(x, width = 7) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -28,7 +32,8 @@ 3 3.23 Code colonnade(x, width = 8) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -39,7 +44,8 @@ 3 3.23 Code colonnade(x, width = 9) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -50,7 +56,8 @@ 3 3.23 Code colonnade(x, width = 10) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -61,7 +68,8 @@ 3 3.23 Code colonnade(x, width = 11) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -72,7 +80,8 @@ 3 3.23 Code colonnade(x, width = 12) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -83,7 +92,8 @@ 3 3.23 Code colonnade(x, width = 13) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -94,7 +104,8 @@ 3 3.23 Code colonnade(x, width = 14) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -105,7 +116,8 @@ 3 3.23 Code colonnade(x, width = 15) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -116,7 +128,8 @@ 3 3.23 Code colonnade(x, width = 16) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -127,7 +140,8 @@ 3 3.23 Code colonnade(x, width = 17) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -138,7 +152,8 @@ 3 3.23 Code colonnade(x, width = 18) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -149,7 +164,8 @@ 3 3.23 Code colonnade(x, width = 19) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -160,7 +176,8 @@ 3 3.23 Code colonnade(x, width = 20) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -171,7 +188,8 @@ 3 3.23 Code colonnade(x, width = 21) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -182,7 +200,8 @@ 3 3.23 Code colonnade(x, width = 22) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -193,7 +212,8 @@ 3 3.23 Code colonnade(x, width = 23) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -204,7 +224,8 @@ 3 3.23 Code colonnade(x, width = 24) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -215,7 +236,8 @@ 3 3.23 c Code colonnade(x, width = 25) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -226,7 +248,8 @@ 3 3.23 c Code colonnade(x, width = 26) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -237,7 +260,8 @@ 3 3.23 c Code colonnade(x, width = 27) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -248,7 +272,8 @@ 3 3.23 c Code colonnade(x, width = 28) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -259,7 +284,8 @@ 3 3.23 c Code colonnade(x, width = 29) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -270,7 +296,8 @@ 3 3.23 c Code colonnade(x, width = 30) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -281,7 +308,8 @@ 3 3.23 c Code colonnade(x, width = 31) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -292,7 +320,8 @@ 3 3.23 c c Code colonnade(x, width = 32) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -303,7 +332,8 @@ 3 3.23 c c Code colonnade(x, width = 33) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -314,7 +344,8 @@ 3 3.23 c c Code colonnade(x, width = 34) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -325,7 +356,8 @@ 3 3.23 c c Code colonnade(x, width = 35) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -336,7 +368,8 @@ 3 3.23 c c Code colonnade(x, width = 36) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -347,7 +380,8 @@ 3 3.23 c c Code colonnade(x, width = 37) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -358,7 +392,8 @@ 3 3.23 c c Code colonnade(x, width = 38) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -369,7 +404,8 @@ 3 3.23 c c c Code colonnade(x, width = 39) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -380,7 +416,8 @@ 3 3.23 c c c Code colonnade(x, width = Inf) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -394,7 +431,8 @@ Code colonnade(rep(list(paste(letters, collapse = " ")), 4), width = Inf) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -411,7 +449,8 @@ Code as_glue(extra_cols_impl(squeeze_impl(colonnade(x), width = 10))) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -423,7 +462,8 @@ Code as_glue(extra_cols_impl(squeeze_impl(colonnade(x), width = 20))) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -435,7 +475,8 @@ Code as_glue(extra_cols_impl(squeeze_impl(colonnade(x), width = 30))) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -446,7 +487,8 @@ Code as_glue(extra_cols_impl(squeeze_impl(colonnade(x), width = 35))) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -456,7 +498,8 @@ Code as_glue(extra_cols_impl(squeeze_impl(colonnade(x), width = 40))) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. @@ -464,7 +507,8 @@ Code colonnade(mtcars[1:8, ], has_row_id = "*", width = 30) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -480,7 +524,8 @@ 8 24.4 4 147. 62 Code colonnade(trees[1:5, ], width = 20) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -493,7 +538,8 @@ 5 10.7 81 Code colonnade(trees[1:3, ], width = 10) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -504,7 +550,8 @@ 3 8.8 Code colonnade(df_all, width = 30) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -515,7 +562,8 @@ 3 NA NA NA Code colonnade(df_all, width = 300) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -532,7 +580,8 @@ Code options(width = 70) colonnade(df_all, width = 300) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -549,7 +598,8 @@ Code options(width = 60) colonnade(df_all, width = 300) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -566,7 +616,8 @@ Code options(width = 50) colonnade(df_all, width = 300) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -583,7 +634,8 @@ Code options(width = 40) colonnade(df_all, width = 300) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -605,7 +657,8 @@ Code options(width = 30) colonnade(df_all, width = 300) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -632,7 +685,8 @@ Code options(width = 20) colonnade(df_all, width = 300) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -670,7 +724,8 @@ list_with_ctl <- list(c("\n", "\""), factor(c("\n", "\n"))) names(list_with_ctl) <- c("\n", "\r") colonnade(list_with_ctl, width = 30) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -680,7 +735,8 @@ 2 "\"" "\n" Code colonnade(list(a = c("", " ", "a ", " a")), width = 30) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -692,7 +748,8 @@ 4 " a" Code colonnade(list(`mean(x)` = 5, `var(x)` = 3), width = 30) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -704,7 +761,8 @@ Code colonnade(x, width = 30) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -718,7 +776,8 @@ Code colonnade(x, width = 30) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -734,7 +793,8 @@ Code colonnade(x, width = 30) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -748,7 +808,8 @@ Code colonnade(x, width = 40) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -762,7 +823,8 @@ Code colonnade(x, width = 40) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -776,7 +838,8 @@ Code colonnade(x, width = 30) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -790,7 +853,8 @@ Code colonnade(x, width = 30) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -804,7 +868,8 @@ Code colonnade(x, width = 30) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output diff --git a/tests/testthat/_snaps/testthat_3.1.2/format_multi_fuzz.md b/tests/testthat/_snaps/testthat_3.1.2/format_multi_fuzz.md index 01495ffa5..6ec0b1cc2 100644 --- a/tests/testthat/_snaps/testthat_3.1.2/format_multi_fuzz.md +++ b/tests/testthat/_snaps/testthat_3.1.2/format_multi_fuzz.md @@ -6,7 +6,8 @@ 25L, 21L, 19L, 45L, 43L, 29L, 1L, 30L, 22L, 27L, 15L, 47L, 28L, 31L, 10L, 50L, 4L, 40L, 42L, 8L, 6L, 9L, 24L, 48L, 38L, 37L, 34L, 49L, 46L, 2L, 32L, 35L, 39L, 11L, 17L, 5L, 26L, 20L)], width = 1382) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -88,7 +89,8 @@ 41L, 49L, 34L, 4L, 39L, 18L, 36L, 26L, 38L, 10L, 8L, 5L, 15L, 44L, 24L, 46L, 14L, 25L, 27L, 3L, 37L, 35L, 12L, 9L, 13L, 22L, 33L, 42L, 11L, 19L, 50L, 23L, 30L, 32L, 2L, 43L, 31L)], width = 837) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -146,7 +148,8 @@ 5L, 15L, 11L, 31L, 27L, 33L, 28L, 43L, 6L, 13L, 22L, 14L, 16L, 35L, 50L, 38L, 7L, 23L, 45L, 40L, 3L, 2L, 24L, 41L, 10L, 30L, 25L, 17L, 26L, 48L, 37L, 49L, 1L, 18L, 21L, 44L, 20L)], width = 455) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -201,7 +204,8 @@ 36L, 47L, 46L, 2L, 24L, 27L, 39L, 28L, 43L, 32L, 30L, 48L, 44L, 6L, 20L, 13L, 15L, 18L, 42L, 9L, 12L, 37L, 45L, 16L, 40L, 11L, 14L, 38L, 1L, 7L, 3L, 23L, 35L, 50L, 17L, 49L, 33L)], width = 855) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -259,7 +263,8 @@ 12L, 20L, 43L, 37L, 5L, 2L, 18L, 41L, 26L, 33L, 11L, 49L, 24L, 35L, 4L, 47L, 30L, 7L, 34L, 3L, 32L, 42L, 10L, 45L, 38L, 39L, 48L, 14L, 6L, 17L, 36L, 50L, 40L, 13L, 8L, 21L, 15L, 29L)], width = 552) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -302,7 +307,8 @@ 27L, 9L, 28L, 49L, 34L, 15L, 17L, 35L, 22L, 47L, 3L, 21L, 23L, 41L, 5L, 1L, 14L, 46L, 30L, 31L, 44L, 4L, 7L, 40L, 43L, 12L, 29L, 8L, 36L, 45L, 11L, 20L, 10L, 6L, 19L, 48L, 39L, 42L)], width = 1031) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -378,7 +384,8 @@ 43L, 20L, 17L, 46L, 33L, 35L, 32L, 2L, 12L, 8L, 37L, 23L, 39L, 7L, 18L, 36L, 42L, 6L, 30L, 19L, 25L, 5L, 21L, 47L, 50L, 28L, 11L, 31L, 14L, 24L, 27L, 45L, 41L, 38L, 3L, 13L, 48L)], width = 429) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -424,7 +431,8 @@ 34L, 11L, 43L, 38L, 3L, 33L, 20L, 31L, 2L, 18L, 48L, 27L, 44L, 9L, 35L, 30L, 6L, 49L, 10L, 1L, 16L, 46L, 29L, 12L, 14L, 45L, 36L, 15L, 39L, 50L, 23L, 17L, 28L, 7L, 32L, 40L, 25L)], width = 633) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -470,7 +478,8 @@ 10L, 50L, 14L, 38L, 39L, 46L, 22L, 28L, 8L, 21L, 44L, 32L, 40L, 31L, 1L, 29L, 34L, 35L, 33L, 19L, 15L, 41L, 20L, 47L, 18L, 16L, 45L, 6L, 5L, 24L, 26L, 43L, 11L, 42L, 30L, 17L, 2L)], width = 1496) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -597,7 +606,8 @@ 37L, 8L, 26L, 21L, 50L, 5L, 41L, 30L, 2L, 33L, 34L, 3L, 44L, 19L, 43L, 6L, 32L, 29L, 20L, 1L, 13L, 11L, 40L, 12L, 48L, 23L, 9L, 15L, 46L, 36L, 27L, 35L, 28L, 10L, 7L, 39L, 17L, 38L)], width = 493) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -655,7 +665,8 @@ 37L, 29L, 41L, 47L, 9L, 33L, 44L, 31L, 45L, 36L, 28L, 5L, 10L, 30L, 20L, 1L, 14L, 43L, 49L, 23L, 26L, 21L, 32L, 19L, 34L, 15L, 48L, 4L, 7L, 35L, 40L, 8L, 22L, 3L, 25L, 12L, 27L, 2L)], width = 1130) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -731,7 +742,8 @@ 13L, 12L, 36L, 21L, 46L, 33L, 25L, 35L, 1L, 5L, 16L, 34L, 18L, 42L, 3L, 11L, 40L, 26L, 37L, 7L, 39L, 6L, 4L, 19L, 8L, 45L, 14L, 24L, 23L, 2L, 47L, 9L, 49L, 41L, 38L, 22L, 44L, 15L)], width = 1310) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -810,7 +822,8 @@ 50L, 17L, 2L, 44L, 30L, 36L, 45L, 25L, 38L, 18L, 29L, 5L, 13L, 3L, 23L, 48L, 40L, 34L, 22L, 39L, 33L, 27L, 7L, 19L, 10L, 37L, 6L, 35L, 46L, 31L, 41L, 43L, 28L, 42L, 32L, 21L, 9L)], width = 484) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -853,7 +866,8 @@ 37L, 36L, 5L, 43L, 11L, 14L, 13L, 39L, 16L, 12L, 4L, 18L, 42L, 3L, 10L, 28L, 40L, 24L, 29L, 17L, 35L, 47L, 2L, 38L, 34L, 9L, 7L, 8L, 50L, 33L, 32L, 27L, 46L, 19L, 22L, 41L, 30L, 1L)], width = 779) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -908,7 +922,8 @@ 36L, 18L, 31L, 20L, 39L, 12L, 44L, 33L, 50L, 34L, 26L, 32L, 23L, 30L, 29L, 21L, 4L, 49L, 19L, 25L, 3L, 6L, 15L, 14L, 43L, 48L, 8L, 22L, 1L, 2L, 45L, 35L, 16L, 5L, 47L, 28L, 24L, 7L)], width = 694) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output diff --git a/tests/testthat/_snaps/testthat_3.1.2/format_multi_fuzz_2.md b/tests/testthat/_snaps/testthat_3.1.2/format_multi_fuzz_2.md index e5225f233..15d2c86b8 100644 --- a/tests/testthat/_snaps/testthat_3.1.2/format_multi_fuzz_2.md +++ b/tests/testthat/_snaps/testthat_3.1.2/format_multi_fuzz_2.md @@ -6,7 +6,8 @@ 43L, 41L, 26L, 45L, 22L, 9L, 13L, 32L, 31L, 12L, 19L, 48L, 49L, 35L, 3L, 11L, 23L, 24L, 40L, 15L, 38L, 10L, 46L, 5L, 50L, 18L, 21L, 6L, 30L, 2L, 7L, 1L, 4L, 8L, 17L, 33L, 39L, 37L)], width = 516) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -46,7 +47,8 @@ 33L, 45L, 47L, 34L, 25L, 14L, 18L, 23L, 7L, 3L, 42L, 36L, 11L, 2L, 20L, 31L, 1L, 4L, 38L, 9L, 27L, 40L, 32L, 17L, 6L, 49L, 16L, 19L, 15L, 22L, 39L, 10L, 46L, 5L, 30L, 8L, 26L, 37L)], width = 1365) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -155,7 +157,8 @@ 33L, 37L, 47L, 43L, 44L, 10L, 31L, 27L, 34L, 35L, 41L, 21L, 4L, 25L, 38L, 48L, 9L, 24L, 26L, 39L, 20L, 36L, 42L, 16L, 6L, 11L, 7L, 12L, 1L, 46L, 15L, 5L, 8L, 50L, 32L, 30L, 49L, 28L)], width = 934) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -237,7 +240,8 @@ 21L, 18L, 33L, 10L, 43L, 2L, 46L, 34L, 3L, 19L, 1L, 38L, 9L, 37L, 5L, 8L, 25L, 49L, 27L, 29L, 15L, 39L, 24L, 40L, 48L, 26L, 47L, 42L, 41L, 12L, 28L, 30L, 7L, 16L, 4L, 50L, 20L, 32L)], width = 565) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -301,7 +305,8 @@ 13L, 4L, 22L, 3L, 37L, 32L, 40L, 9L, 25L, 16L, 45L, 23L, 21L, 6L, 49L, 36L, 27L, 38L, 14L, 34L, 8L, 24L, 29L, 1L, 12L, 2L, 20L, 17L, 35L, 5L, 19L, 30L, 7L, 26L, 42L, 41L, 39L, 10L)], width = 1121) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -410,7 +415,8 @@ 8L, 9L, 5L, 36L, 22L, 17L, 39L, 18L, 45L, 37L, 13L, 29L, 6L, 30L, 16L, 20L, 10L, 19L, 26L, 33L, 40L, 35L, 48L, 38L, 25L, 2L, 47L, 42L, 41L, 27L, 14L, 21L, 24L, 50L, 49L, 23L, 32L)], width = 446) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -462,7 +468,8 @@ 45L, 49L, 11L, 50L, 14L, 29L, 44L, 13L, 30L, 38L, 32L, 40L, 42L, 1L, 31L, 41L, 7L, 23L, 35L, 28L, 6L, 25L, 2L, 9L, 12L, 15L, 5L, 18L, 20L, 27L, 43L, 8L, 47L, 4L, 48L, 24L, 26L, 22L)], width = 1166) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -586,7 +593,8 @@ 3L, 50L, 35L, 1L, 12L, 34L, 48L, 4L, 29L, 23L, 37L, 36L, 28L, 43L, 11L, 17L, 32L, 8L, 41L, 13L, 44L, 7L, 38L, 26L, 33L, 20L, 19L, 2L, 18L, 49L, 27L, 47L, 22L, 14L, 6L, 5L, 45L, 42L)], width = 546) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -626,7 +634,8 @@ 20L, 49L, 45L, 47L, 12L, 9L, 13L, 36L, 26L, 44L, 11L, 46L, 28L, 7L, 18L, 50L, 16L, 29L, 30L, 4L, 23L, 17L, 40L, 33L, 14L, 27L, 19L, 34L, 32L, 3L, 37L, 15L, 10L, 5L, 35L, 31L, 42L)], width = 1035) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -693,7 +702,8 @@ 44L, 35L, 7L, 4L, 49L, 1L, 36L, 12L, 41L, 39L, 13L, 48L, 27L, 18L, 30L, 42L, 28L, 3L, 46L, 21L, 20L, 16L, 29L, 50L, 10L, 9L, 8L, 47L, 31L, 14L, 38L, 33L, 32L, 43L, 23L, 15L, 37L)], width = 1217) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -814,7 +824,8 @@ 35L, 50L, 13L, 19L, 29L, 8L, 15L, 4L, 2L, 27L, 49L, 47L, 30L, 31L, 25L, 28L, 46L, 12L, 32L, 39L, 24L, 10L, 45L, 5L, 37L, 14L, 40L, 20L, 41L, 44L, 33L, 18L, 38L, 3L, 1L, 34L, 16L, 9L)], width = 770) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -899,7 +910,8 @@ 14L, 29L, 47L, 9L, 16L, 36L, 4L, 13L, 41L, 3L, 28L, 37L, 33L, 38L, 31L, 34L, 19L, 42L, 32L, 1L, 45L, 15L, 7L, 11L, 49L, 23L, 12L, 48L, 20L, 21L, 44L, 25L, 10L, 22L, 30L, 40L, 17L)], width = 1439) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -1005,7 +1017,8 @@ 10L, 39L, 2L, 47L, 42L, 14L, 9L, 41L, 45L, 6L, 4L, 11L, 24L, 43L, 32L, 3L, 38L, 5L, 49L, 27L, 17L, 8L, 22L, 40L, 12L, 15L, 1L, 28L, 31L, 29L, 13L, 48L, 34L, 36L, 30L, 20L, 16L, 46L)], width = 1065) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -1078,7 +1091,8 @@ 11L, 29L, 2L, 14L, 26L, 46L, 40L, 45L, 9L, 34L, 33L, 22L, 1L, 17L, 28L, 10L, 21L, 30L, 47L, 49L, 6L, 12L, 4L, 25L, 32L, 15L, 43L, 24L, 48L, 3L, 37L, 50L, 42L, 39L, 16L, 8L, 27L, 5L)], width = 393) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output @@ -1124,7 +1138,8 @@ 10L, 39L, 21L, 50L, 7L, 29L, 12L, 46L, 43L, 15L, 35L, 20L, 40L, 49L, 38L, 36L, 48L, 34L, 3L, 8L, 4L, 27L, 42L, 44L, 33L, 45L, 18L, 5L, 2L, 13L, 47L, 28L, 17L, 37L, 14L, 41L, 23L)], width = 999) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output diff --git a/tests/testthat/_snaps/testthat_3.1.2/tbl-format.md b/tests/testthat/_snaps/testthat_3.1.2/tbl-format.md index c18e20b6a..671ca56fc 100644 --- a/tests/testthat/_snaps/testthat_3.1.2/tbl-format.md +++ b/tests/testthat/_snaps/testthat_3.1.2/tbl-format.md @@ -2,7 +2,8 @@ Code print(as_tbl(mtcars), width = 40, n_extra = 1) - Warning + Condition + Warning: The `n_extra` argument of `print()` is deprecated as of pillar 1.6.2. Please use the `max_extra_cols` argument instead. Output diff --git a/tests/testthat/_snaps/testthat_3.1.2/zzx-format_character.md b/tests/testthat/_snaps/testthat_3.1.2/zzx-format_character.md index cf71ef829..4939bb0f3 100644 --- a/tests/testthat/_snaps/testthat_3.1.2/zzx-format_character.md +++ b/tests/testthat/_snaps/testthat_3.1.2/zzx-format_character.md @@ -2,7 +2,8 @@ Code colonnade(chartype_frame(), width = 50) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output diff --git a/tests/testthat/_snaps/unicode/format_multi.md b/tests/testthat/_snaps/unicode/format_multi.md index 0c3a76ca1..27d76d870 100644 --- a/tests/testthat/_snaps/unicode/format_multi.md +++ b/tests/testthat/_snaps/unicode/format_multi.md @@ -21,13 +21,6 @@ Output [1] "\033[31m-1\033[39m" ---- - - Code - style_na("NA") - Output - [1] "\033[31mNA\033[39m" - --- Code diff --git a/tests/testthat/_snaps/zzx-format_character.md b/tests/testthat/_snaps/zzx-format_character.md new file mode 100644 index 000000000..4939bb0f3 --- /dev/null +++ b/tests/testthat/_snaps/zzx-format_character.md @@ -0,0 +1,27 @@ +# output test (not on Windows) + + Code + colonnade(chartype_frame(), width = 50) + Condition + Warning: + `colonnade()` was deprecated in pillar 1.7.0. + Please use `tbl_format_setup()` instead. + Output + chars desc + + 1 "\u0001\u001f" C0 control code + 2 "\a\b\f\n\r\t" Named control code + 3 "abcdefuvwxyz" ASCII + 4 "\u0080\u009f" C1 control code + 5 " ¡¢£¤¥úûüýþÿ" Latin-1 + 6 "ĀāĂ㥹ĆćĈĉĊċ" Unicode + 7 "!"#$%&" Unicode wide + 8 "\u0e00\u2029" Unicode control + 9 "x­x​x‌x‍x‎x‏x͏xx󠀁x󠀠x󠇯x" Unicode ignorable + 10 "àáâãāa̅ăȧäảåa̋" Unicode mark + 11 "😀😁😂😃😄💃" Emoji + 12 "x\U0010ffffx" Unassigned + 13 "\xfd\xfe\xff" Invalid + 14 "\\" Backslash + 15 "\"" Quote + diff --git a/tests/testthat/helper-snapshot.R b/tests/testthat/helper-snapshot.R index 3eb97a9f6..575ebdf4e 100644 --- a/tests/testthat/helper-snapshot.R +++ b/tests/testthat/helper-snapshot.R @@ -9,7 +9,7 @@ snapshot_variant <- function(...) { variant <- NULL if ("testthat" %in% matrix) { - variant <- c(variant, paste0("testthat_", packageVersion("testthat"))) + #variant <- c(variant, paste0("testthat_", packageVersion("testthat"))) } if ("os" %in% matrix) { From ba0a4473576b869f6bc94b0a5c463da9d99250d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Tue, 22 Feb 2022 06:09:31 +0100 Subject: [PATCH 2/4] Silence --- R/compat-lifecycle.R | 51 ++++++++++++++++++++++++++++++ tests/testthat/test-format_multi.R | 5 ++- 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 R/compat-lifecycle.R diff --git a/R/compat-lifecycle.R b/R/compat-lifecycle.R new file mode 100644 index 000000000..f99e044a2 --- /dev/null +++ b/R/compat-lifecycle.R @@ -0,0 +1,51 @@ +# nocov start - compat-lifecycle (last updated: rlang 0.3.0.9000) + +scoped_lifecycle_silence <- function(frame = rlang::caller_env()) { + rlang::local_options( + .frame = frame, + lifecycle_verbosity = "quiet" + ) +} +with_lifecycle_silence <- function(expr) { + scoped_lifecycle_silence() + expr +} + +scoped_lifecycle_warnings <- function(frame = rlang::caller_env()) { + rlang::local_options( + .frame = frame, + lifecycle_verbosity = "warning" + ) +} +with_lifecycle_warnings <- function(expr) { + scoped_lifecycle_warnings() + expr +} + +scoped_lifecycle_errors <- function(frame = rlang::caller_env()) { + rlang::local_options( + .frame = frame, + lifecycle_verbosity = "error" + ) +} +with_lifecycle_errors <- function(expr) { + scoped_lifecycle_errors() + expr +} + +# Enable once signal_superseded() reaches stable state +signal_superseded <- function(...) {} + +foreign_caller_env <- function(my_env = ns_env()) { + for (n in 2:10) { + caller <- caller_env(n) + if (!is_reference(env_parent(caller), my_env)) { + return(caller) + } + } + + # Safety net + caller +} + +# nocov end diff --git a/tests/testthat/test-format_multi.R b/tests/testthat/test-format_multi.R index 35b543614..fb6de151a 100644 --- a/tests/testthat/test-format_multi.R +++ b/tests/testthat/test-format_multi.R @@ -127,6 +127,7 @@ test_that("tests from tibble", { }) test_that("empty", { + scoped_lifecycle_silence() skip_if(getRversion() < "4.0") expect_equal( @@ -180,7 +181,9 @@ test_that("color", { style_neg("-1") }) - xf <- colonnade(list(x = c((10^(-3:4)) * c(-1, 1), NA))) + with_lifecycle_silence({ + xf <- colonnade(list(x = c((10^(-3:4)) * c(-1, 1), NA))) + }) expect_snapshot(variant = snapshot_variant("testthat", "output-enc"), { print(xf) From a5f8c04299d749cdfbfed9b9e4af576f02f74977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Tue, 22 Feb 2022 06:16:15 +0100 Subject: [PATCH 3/4] Avoid specializing on testthat version --- tests/testthat/helper-snapshot.R | 6 +--- tests/testthat/test-format_multi.R | 38 +++++++++++----------- tests/testthat/test-format_multi_fuzz.R | 2 +- tests/testthat/test-format_multi_fuzz_2.R | 2 +- tests/testthat/test-tbl-format.R | 2 +- tests/testthat/test-zzx-format_character.R | 2 +- 6 files changed, 24 insertions(+), 28 deletions(-) diff --git a/tests/testthat/helper-snapshot.R b/tests/testthat/helper-snapshot.R index 575ebdf4e..b2542a159 100644 --- a/tests/testthat/helper-snapshot.R +++ b/tests/testthat/helper-snapshot.R @@ -1,17 +1,13 @@ snapshot_variant <- function(...) { matrix <- c(...) - bad_variants <- setdiff(matrix, c("testthat", "os", "output-enc")) + bad_variants <- setdiff(matrix, c("os", "output-enc")) if (length(bad_variants) > 0) { abort(paste0("Unknown variant selector: ", bad_variants[[1]])) } variant <- NULL - if ("testthat" %in% matrix) { - #variant <- c(variant, paste0("testthat_", packageVersion("testthat"))) - } - if ("os" %in% matrix) { variant <- c(variant, testthat_os()) } diff --git a/tests/testthat/test-format_multi.R b/tests/testthat/test-format_multi.R index fb6de151a..a6b173052 100644 --- a/tests/testthat/test-format_multi.R +++ b/tests/testthat/test-format_multi.R @@ -20,7 +20,7 @@ test_that("output test", { col_03 = factor(letters[1:3]), col_04 = ordered(letters[1:3]) ) - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ colonnade(x, width = 4) colonnade(x, width = 5) colonnade(x, width = 6) @@ -60,36 +60,36 @@ test_that("output test", { colonnade(x, width = Inf) }) - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ colonnade(rep(list(paste(letters, collapse = " ")), 4), width = Inf) }) # Spurious warnings on Windows suppressWarnings( - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ as_glue(extra_cols_impl(squeeze_impl(colonnade(x), width = 10))) }) ) suppressWarnings( - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ as_glue(extra_cols_impl(squeeze_impl(colonnade(x), width = 20))) }) ) suppressWarnings( - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ as_glue(extra_cols_impl(squeeze_impl(colonnade(x), width = 30))) }) ) suppressWarnings( - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ as_glue(extra_cols_impl(squeeze_impl(colonnade(x), width = 35))) }) ) - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ as_glue(extra_cols_impl(squeeze_impl(colonnade(x), width = 40))) }) }) @@ -100,7 +100,7 @@ test_that("tests from tibble", { skip_if_not_installed("rlang", "0.4.11.9000") local_options(width = 80) - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ colonnade(mtcars[1:8, ], has_row_id = "*", width = 30) colonnade(trees[1:5, ], width = 20) colonnade(trees[1:3, ], width = 10) @@ -145,7 +145,7 @@ test_that("NA names", { x <- list(`NA` = 1:3, set_to_NA = 4:6) names(x)[[2]] <- NA_character_ - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ colonnade(x, width = 30) }) }) @@ -154,7 +154,7 @@ test_that("sep argument", { skip_if(getRversion() < "4.0") x <- list(sep = 1:3) - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ colonnade(x, width = 30) "dummy" }) @@ -173,7 +173,7 @@ test_that("color", { expect_true(cli::is_utf8_output()) } - expect_snapshot(variant = snapshot_variant("testthat", "output-enc"), { + expect_snapshot(variant = snapshot_variant("output-enc"), { cli::num_ansi_colors() has_color() num_colors() @@ -185,7 +185,7 @@ test_that("color", { xf <- colonnade(list(x = c((10^(-3:4)) * c(-1, 1), NA))) }) - expect_snapshot(variant = snapshot_variant("testthat", "output-enc"), { + expect_snapshot(variant = snapshot_variant("output-enc"), { print(xf) with_options(pillar.subtle_num = TRUE, print(xf)) with_options(pillar.subtle = FALSE, print(xf)) @@ -196,7 +196,7 @@ test_that("color", { skip_if(getRversion() < "4.0") - expect_snapshot(variant = snapshot_variant("testthat", "output-enc"), { + expect_snapshot(variant = snapshot_variant("output-enc"), { colonnade(list(a_very_long_column_name = 0), width = 15) }) }) @@ -218,7 +218,7 @@ test_that("tibble columns", { skip_if(getRversion() < "4.0") x <- list(a = 1:3, b = data.frame(c = 4:6, d = 7:9)) - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ colonnade(x, width = 30) }) }) @@ -236,7 +236,7 @@ test_that("tibble columns (nested)", { class = "data.frame" ) ) - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ colonnade(x, width = 40) }) }) @@ -255,7 +255,7 @@ test_that("tibble columns (empty)", { class = "data.frame" ) ) - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ colonnade(x, width = 40) }) }) @@ -264,7 +264,7 @@ test_that("matrix columns (unnamed)", { skip_if(getRversion() < "4.0") x <- list(a = 1:3, b = matrix(4:9, ncol = 2)) - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ colonnade(x, width = 30) }) }) @@ -273,14 +273,14 @@ test_that("matrix columns (named)", { skip_if(getRversion() < "4.0") x <- list(a = 1:3, b = matrix(4:9, ncol = 2, dimnames = list(NULL, c("c", "d")))) - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ colonnade(x, width = 30) }) }) test_that("matrix columns (empty)", { x <- list(a = 1:3, b = matrix(4:6, ncol = 1)[, 0], c = 4:6) - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ colonnade(x, width = 30) }) }) diff --git a/tests/testthat/test-format_multi_fuzz.R b/tests/testthat/test-format_multi_fuzz.R index ba70584f2..c54945952 100644 --- a/tests/testthat/test-format_multi_fuzz.R +++ b/tests/testthat/test-format_multi_fuzz.R @@ -5,7 +5,7 @@ test_that("strings with varying widths", { # Generated by data-raw/create-chr-tests.R # nolint start - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ options(width = 59) colonnade(df_str[c(12L, 33L, 36L, 7L, 41L, 3L, 18L, 23L, 13L, 44L, 14L, 16L, 25L, 21L, 19L, 45L, 43L, 29L, 1L, 30L, 22L, 27L, 15L, 47L, 28L, 31L, 10L, 50L, 4L, 40L, 42L, 8L, 6L, 9L, 24L, 48L, 38L, 37L, 34L, 49L, 46L, 2L, 32L, 35L, 39L, 11L, 17L, 5L, 26L, 20L)], width = 1382) options(width = 54) diff --git a/tests/testthat/test-format_multi_fuzz_2.R b/tests/testthat/test-format_multi_fuzz_2.R index c5ea51d6e..01e9aa0a0 100644 --- a/tests/testthat/test-format_multi_fuzz_2.R +++ b/tests/testthat/test-format_multi_fuzz_2.R @@ -3,7 +3,7 @@ test_that("strings with varying widths", { # Generated by data-raw/create-chr-tests.R # nolint start - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ options(width = 54) colonnade(df_str[c(28L, 34L, 16L, 29L, 47L, 25L, 42L, 27L, 44L, 20L, 14L, 36L, 43L, 41L, 26L, 45L, 22L, 9L, 13L, 32L, 31L, 12L, 19L, 48L, 49L, 35L, 3L, 11L, 23L, 24L, 40L, 15L, 38L, 10L, 46L, 5L, 50L, 18L, 21L, 6L, 30L, 2L, 7L, 1L, 4L, 8L, 17L, 33L, 39L, 37L)], width = 516) options(width = 42) diff --git a/tests/testthat/test-tbl-format.R b/tests/testthat/test-tbl-format.R index 9f9d73de7..8855773d1 100644 --- a/tests/testthat/test-tbl-format.R +++ b/tests/testthat/test-tbl-format.R @@ -44,7 +44,7 @@ test_that("print() output", { ) }) - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ print(as_tbl(mtcars), width = 40, n_extra = 1) }) }) diff --git a/tests/testthat/test-zzx-format_character.R b/tests/testthat/test-zzx-format_character.R index ed9780ada..c0fe78a0a 100644 --- a/tests/testthat/test-zzx-format_character.R +++ b/tests/testthat/test-zzx-format_character.R @@ -76,7 +76,7 @@ test_that("output test (not on Windows)", { # Spurious warnings on Windows suppressWarnings( - expect_snapshot(variant = snapshot_variant("testthat"), { + expect_snapshot({ colonnade(chartype_frame(), width = 50) }) ) From 84803447dec1c3c5465426c1c27ed64a627dc38c Mon Sep 17 00:00:00 2001 From: krlmlr Date: Tue, 22 Feb 2022 05:23:34 +0000 Subject: [PATCH 4/4] [create-pull-request] automated change --- tests/testthat/_snaps/ansi/format_multi.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/testthat/_snaps/ansi/format_multi.md b/tests/testthat/_snaps/ansi/format_multi.md index c0d1a9e47..5e532486d 100644 --- a/tests/testthat/_snaps/ansi/format_multi.md +++ b/tests/testthat/_snaps/ansi/format_multi.md @@ -21,13 +21,6 @@ Output [1] "\033[31m-1\033[39m" ---- - - Code - style_na("NA") - Output - [1] "\033[31mNA\033[39m" - --- Code @@ -119,7 +112,8 @@ Code colonnade(list(a_very_long_column_name = 0), width = 15) - Warning + Condition + Warning: `colonnade()` was deprecated in pillar 1.7.0. Please use `tbl_format_setup()` instead. Output