# output test Code options(width = 100) tbl_format_setup(x, width = 4) Output # A # data # frame: # 3 # x # 3 # i 3 more variables: column_zero_zero , `col 01` , `col 05` Code tbl_format_setup(x, width = 5) Output # A # data # frame: # 3 # x # 3 # i 3 # more # variables: # column_zero_zero , # `col 01` , # `col 05` Code tbl_format_setup(x, width = 6) Output # A # data # frame: # 3 # x # 3 # i 3 # more # variables: # column_zero_zero , # `col 01` , # `col 05` Code tbl_format_setup(x, width = 7) Output # A # data # frame: # 3 # x # 3 # i 3 # more # variables: # column_zero_zero , # `col 01` , # `col 05` Code tbl_format_setup(x, width = 8) Output # A # data # frame: # 3 x # 3 # i 3 # more # variables: # column_zero_zero , # `col 01` , # `col 05` Code tbl_format_setup(x, width = 9) Output # A data # frame: # 3 x # 3 # i 3 # more # variables: # column_zero_zero , # `col 01` , # `col 05` Code tbl_format_setup(x, width = 10) Output # A data # frame: # 3 x 3 # i 3 # more # variables: # column_zero_zero , # `col 01` , # `col 05` Code tbl_format_setup(x, width = 11) Output # A data # frame: # 3 x 3 # i 3 more # variables: # column_zero_zero , # `col 01` , # `col 05` Code tbl_format_setup(x, width = 12) Output # A data # frame: # 3 x 3 # i 3 more # variables: # column_zero_zero , # `col 01` , # `col 05` Code tbl_format_setup(x, width = 13) Output # A data # frame: 3 # x 3 # i 3 more # variables: # column_zero_zero , # `col 01` , # `col 05` Code tbl_format_setup(x, width = 14) Output # A data # frame: 3 # x 3 # i 3 more # variables: # column_zero_zero , # `col 01` , # `col 05` Code tbl_format_setup(x, width = 15) Output # A data # frame: 3 x # 3 # i 3 more # variables: # column_zero_zero , # `col 01` , # `col 05` Code tbl_format_setup(x, width = 16) Output # A data frame: # 3 x 3 # i 3 more # variables: # column_zero_zero , # `col 01` , # `col 05` Code tbl_format_setup(x, width = 17) Output # A data frame: # 3 x 3 # i 3 more # variables: # column_zero_zero , # `col 01` , # `col 05` Code tbl_format_setup(x, width = 18) Output # A data frame: 3 # x 3 column_zero_zero 1 1.23 2 2.23 3 3.23 # i 2 more # variables: # `col 01` , # `col 05` Code tbl_format_setup(x, width = 19) Output # A data frame: 3 # x 3 column_zero_zero 1 1.23 2 2.23 3 3.23 # i 2 more # variables: # `col 01` , # `col 05` Code tbl_format_setup(x, width = 20) Output # A data frame: 3 x # 3 column_zero_zero 1 1.23 2 2.23 3 3.23 # i 2 more # variables: # `col 01` , # `col 05` Code tbl_format_setup(x, width = 21) Output # A data frame: 3 x # 3 column_zero_zero 1 1.23 2 2.23 3 3.23 # i 2 more # variables: # `col 01` , # `col 05` Code tbl_format_setup(x, width = 22) Output # A data frame: 3 x 3 column_zero_zero 1 1.23 2 2.23 3 3.23 # i 2 more variables: # `col 01` , # `col 05` Code tbl_format_setup(x, width = 23) Output # A data frame: 3 x 3 column_zero_zero 1 1.23 2 2.23 3 3.23 # i 2 more variables: # `col 01` , # `col 05` Code tbl_format_setup(x, width = 24) Output # A data frame: 3 x 3 column_zero_zero 1 1.23 2 2.23 3 3.23 # i 2 more variables: # `col 01` , # `col 05` Code tbl_format_setup(x, width = 25) Output # A data frame: 3 x 3 column_zero_zero 1 1.23 2 2.23 3 3.23 # i 2 more variables: # `col 01` , # `col 05` Code tbl_format_setup(x, width = 26) Output # A data frame: 3 x 3 column_zero_zero 1 1.23 2 2.23 3 3.23 # i 2 more variables: # `col 01` , # `col 05` Code tbl_format_setup(x, width = 27) Output # A data frame: 3 x 3 column_zero_zero 1 1.23 2 2.23 3 3.23 # i 2 more variables: # `col 01` , # `col 05` Code tbl_format_setup(x, width = 28) Output # A data frame: 3 x 3 column_zero_zero 1 1.23 2 2.23 3 3.23 # i 2 more variables: # `col 01` , # `col 05` Code tbl_format_setup(x, width = 29) Output # A data frame: 3 x 3 column_zero_zero 1 1.23 2 2.23 3 3.23 # i 2 more variables: # `col 01` , # `col 05` Code tbl_format_setup(x, width = 30) Output # A data frame: 3 x 3 column_zero_zero 1 1.23 2 2.23 3 3.23 # i 2 more variables: # `col 01` , # `col 05` Code tbl_format_setup(x, width = 31) Output # A data frame: 3 x 3 column_zero_zero 1 1.23 2 2.23 3 3.23 # i 2 more variables: # `col 01` , # `col 05` Code tbl_format_setup(x, width = 32) Output # A data frame: 3 x 3 column_zero_zero 1 1.23 2 2.23 3 3.23 # i 2 more variables: # `col 01` , # `col 05` Code tbl_format_setup(x, width = 33) Output # A data frame: 3 x 3 column_zero_zero 1 1.23 2 2.23 3 3.23 # i 2 more variables: # `col 01` , # `col 05` Code tbl_format_setup(x, width = 34) Output # A data frame: 3 x 3 column_zero_zero 1 1.23 2 2.23 3 3.23 # i 2 more variables: # `col 01` , # `col 05` Code tbl_format_setup(x, width = 35) Output # A data frame: 3 x 3 column_zero_zero 1 1.23 2 2.23 3 3.23 # i 2 more variables: # `col 01` , # `col 05` Code tbl_format_setup(x, width = 36) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` 1 1.23 a 2 2.23 b 3 3.23 c # i 3 more variables: # `col 01`$`col 03` , # $`col 04` , # `col 05` Code tbl_format_setup(x, width = 37) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` 1 1.23 a 2 2.23 b 3 3.23 c # i 3 more variables: # `col 01`$`col 03` , # $`col 04` , # `col 05` Code tbl_format_setup(x, width = 38) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` 1 1.23 a 2 2.23 b 3 3.23 c # i 3 more variables: # `col 01`$`col 03` , # $`col 04` , # `col 05` Code tbl_format_setup(x, width = 39) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` 1 1.23 a 2 2.23 b 3 3.23 c # i 3 more variables: # `col 01`$`col 03` , # $`col 04` , # `col 05` Code tbl_format_setup(x, width = 40) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` 1 1.23 a 2 2.23 b 3 3.23 c # i 3 more variables: # `col 01`$`col 03` , # $`col 04` , `col 05` Code tbl_format_setup(x, width = 41) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` 1 1.23 a 2 2.23 b 3 3.23 c # i 3 more variables: # `col 01`$`col 03` , # $`col 04` , `col 05` Code tbl_format_setup(x, width = 42) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` 1 1.23 a 2 2.23 b 3 3.23 c # i 3 more variables: # `col 01`$`col 03` , # $`col 04` , `col 05` Code tbl_format_setup(x, width = 43) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` 1 1.23 a 2 2.23 b 3 3.23 c # i 3 more variables: # `col 01`$`col 03` , # $`col 04` , `col 05` Code tbl_format_setup(x, width = 44) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` 1 1.23 a 2 2.23 b 3 3.23 c # i 3 more variables: # `col 01`$`col 03` , # $`col 04` , `col 05` Code tbl_format_setup(x, width = 45) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` `col 05` 1 1.23 a a 2 2.23 b b 3 3.23 c c # i 2 more variables: # `col 01`$`col 03` , # $`col 04` Code tbl_format_setup(x, width = 46) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` `col 05` 1 1.23 a a 2 2.23 b b 3 3.23 c c # i 2 more variables: # `col 01`$`col 03` , # $`col 04` Code tbl_format_setup(x, width = 47) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` `col 05` 1 1.23 a a 2 2.23 b b 3 3.23 c c # i 2 more variables: `col 01`$`col 03` , # $`col 04` Code tbl_format_setup(x, width = 48) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` `col 05` 1 1.23 a a 2 2.23 b b 3 3.23 c c # i 2 more variables: `col 01`$`col 03` , # $`col 04` Code tbl_format_setup(x, width = 49) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` `col 05` 1 1.23 a a 2 2.23 b b 3 3.23 c c # i 2 more variables: `col 01`$`col 03` , # $`col 04` Code tbl_format_setup(x, width = 50) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` `col 05` 1 1.23 a a 2 2.23 b b 3 3.23 c c # i 2 more variables: `col 01`$`col 03` , # $`col 04` Code tbl_format_setup(x, width = 51) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` `col 05` 1 1.23 a a 2 2.23 b b 3 3.23 c c # i 2 more variables: `col 01`$`col 03` , # $`col 04` Code tbl_format_setup(x, width = 52) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` `col 05` 1 1.23 a a 2 2.23 b b 3 3.23 c c # i 2 more variables: `col 01`$`col 03` , # $`col 04` Code tbl_format_setup(x, width = 53) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` `col 05` 1 1.23 a a 2 2.23 b b 3 3.23 c c # i 2 more variables: `col 01`$`col 03` , # $`col 04` Code tbl_format_setup(x, width = 54) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` `col 05` 1 1.23 a a 2 2.23 b b 3 3.23 c c # i 2 more variables: `col 01`$`col 03` , # $`col 04` Code tbl_format_setup(x, width = 55) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` `col 05` 1 1.23 a A a 2 2.23 b B b 3 3.23 c C c # i 1 more variable: `col 01`$`col 04` Code tbl_format_setup(x, width = 56) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` `col 05` 1 1.23 a A a 2 2.23 b B b 3 3.23 c C c # i 1 more variable: `col 01`$`col 04` Code tbl_format_setup(x, width = 57) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` `col 05` 1 1.23 a A a 2 2.23 b B b 3 3.23 c C c # i 1 more variable: `col 01`$`col 04` Code tbl_format_setup(x, width = 58) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` `col 05` 1 1.23 a A a 2 2.23 b B b 3 3.23 c C c # i 1 more variable: `col 01`$`col 04` Code tbl_format_setup(x, width = 59) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` `col 05` 1 1.23 a A a 2 2.23 b B b 3 3.23 c C c # i 1 more variable: `col 01`$`col 04` Code tbl_format_setup(x, width = 60) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` `col 05` 1 1.23 a A a 2 2.23 b B b 3 3.23 c C c # i 1 more variable: `col 01`$`col 04` Code tbl_format_setup(x, width = 61) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` `col 05` 1 1.23 a A a 2 2.23 b B b 3 3.23 c C c # i 1 more variable: `col 01`$`col 04` Code tbl_format_setup(x, width = 62) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` `col 05` 1 1.23 a A a 2 2.23 b B b 3 3.23 c C c # i 1 more variable: `col 01`$`col 04` Code tbl_format_setup(x, width = 63) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` `col 05` 1 1.23 a A a 2 2.23 b B b 3 3.23 c C c # i 1 more variable: `col 01`$`col 04` Code tbl_format_setup(x, width = 64) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` `col 05` 1 1.23 a A a 2 2.23 b B b 3 3.23 c C c # i 1 more variable: `col 01`$`col 04` Code tbl_format_setup(x, width = 65) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` `col 05` 1 1.23 a A a 2 2.23 b B b 3 3.23 c C c # i 1 more variable: `col 01`$`col 04` Code tbl_format_setup(x, width = 66) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` `col 05` 1 1.23 a A a 2 2.23 b B b 3 3.23 c C c # i 1 more variable: `col 01`$`col 04` Code tbl_format_setup(x, width = 67) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` `col 05` 1 1.23 a A a 2 2.23 b B b 3 3.23 c C c # i 1 more variable: `col 01`$`col 04` Code tbl_format_setup(x, width = 68) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` `col 05` 1 1.23 a A a 2 2.23 b B b 3 3.23 c C c # i 1 more variable: `col 01`$`col 04` Code tbl_format_setup(x, width = 69) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` `col 05` 1 1.23 a A a 2 2.23 b B b 3 3.23 c C c # i 1 more variable: `col 01`$`col 04` Code tbl_format_setup(x, width = 70) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` `col 05` 1 1.23 a A a 2 2.23 b B b 3 3.23 c C c # i 1 more variable: `col 01`$`col 04` Code tbl_format_setup(x, width = 71) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] `col 05` 1 1.23 a A 1 a 2 2.23 b B 2 b 3 3.23 c C 3 c # i 1 more variable: `col 01`$`col 04`[2:3] Code tbl_format_setup(x, width = 72) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] `col 05` 1 1.23 a A 1 a 2 2.23 b B 2 b 3 3.23 c C 3 c # i 1 more variable: `col 01`$`col 04`[2:3] Code tbl_format_setup(x, width = 73) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] `col 05` 1 1.23 a A 1 a 2 2.23 b B 2 b 3 3.23 c C 3 c # i 1 more variable: `col 01`$`col 04`[2:3] Code tbl_format_setup(x, width = 74) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] `col 05` 1 1.23 a A 1 a 2 2.23 b B 2 b 3 3.23 c C 3 c # i 1 more variable: `col 01`$`col 04`[2:3] Code tbl_format_setup(x, width = 75) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] `col 05` 1 1.23 a A 1 a 2 2.23 b B 2 b 3 3.23 c C 3 c # i 1 more variable: `col 01`$`col 04`[2:3] Code tbl_format_setup(x, width = 76) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] `col 05` 1 1.23 a A 1 a 2 2.23 b B 2 b 3 3.23 c C 3 c # i 1 more variable: `col 01`$`col 04`[2:3] Code tbl_format_setup(x, width = 77) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] `col 05` 1 1.23 a A 1 a 2 2.23 b B 2 b 3 3.23 c C 3 c # i 1 more variable: `col 01`$`col 04`[2:3] Code tbl_format_setup(x, width = 78) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] `col 05` 1 1.23 a A 1 a 2 2.23 b B 2 b 3 3.23 c C 3 c # i 1 more variable: `col 01`$`col 04`[2:3] Code tbl_format_setup(x, width = 79) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] $[,"B"] `col 05` 1 1.23 a A 1 4 a 2 2.23 b B 2 5 b 3 3.23 c C 3 6 c # i 1 more variable: `col 01`$`col 04`[3] Code tbl_format_setup(x, width = 80) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] $[,"B"] `col 05` 1 1.23 a A 1 4 a 2 2.23 b B 2 5 b 3 3.23 c C 3 6 c # i 1 more variable: `col 01`$`col 04`[3] Code tbl_format_setup(x, width = 81) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] $[,"B"] `col 05` 1 1.23 a A 1 4 a 2 2.23 b B 2 5 b 3 3.23 c C 3 6 c # i 1 more variable: `col 01`$`col 04`[3] Code tbl_format_setup(x, width = 82) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] $[,"B"] `col 05` 1 1.23 a A 1 4 a 2 2.23 b B 2 5 b 3 3.23 c C 3 6 c # i 1 more variable: `col 01`$`col 04`[3] Code tbl_format_setup(x, width = 83) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] $[,"B"] `col 05` 1 1.23 a A 1 4 a 2 2.23 b B 2 5 b 3 3.23 c C 3 6 c # i 1 more variable: `col 01`$`col 04`[3] Code tbl_format_setup(x, width = 84) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] $[,"B"] `col 05` 1 1.23 a A 1 4 a 2 2.23 b B 2 5 b 3 3.23 c C 3 6 c # i 1 more variable: `col 01`$`col 04`[3] Code tbl_format_setup(x, width = 85) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] $[,"B"] `col 05` 1 1.23 a A 1 4 a 2 2.23 b B 2 5 b 3 3.23 c C 3 6 c # i 1 more variable: `col 01`$`col 04`[3] Code tbl_format_setup(x, width = 86) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] $[,"B"] `col 05` 1 1.23 a A 1 4 a 2 2.23 b B 2 5 b 3 3.23 c C 3 6 c # i 1 more variable: `col 01`$`col 04`[3] Code tbl_format_setup(x, width = 87) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] $[,"B"] $[,"C"] `col 05` 1 1.23 a A 1 4 7 a 2 2.23 b B 2 5 8 b 3 3.23 c C 3 6 9 c Code tbl_format_setup(x, width = 88) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] $[,"B"] $[,"C"] `col 05` 1 1.23 a A 1 4 7 a 2 2.23 b B 2 5 8 b 3 3.23 c C 3 6 9 c Code tbl_format_setup(x, width = 89) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] $[,"B"] $[,"C"] `col 05` 1 1.23 a A 1 4 7 a 2 2.23 b B 2 5 8 b 3 3.23 c C 3 6 9 c Code tbl_format_setup(x, width = Inf) Output # A data frame: 3 x 3 column_zero_zero `col 01`$`col 02` $`col 03` $`col 04`[,"A"] $[,"B"] $[,"C"] `col 05` 1 1.23 a A 1 4 7 a 2 2.23 b B 2 5 8 b 3 3.23 c C 3 6 9 c # tbl_format_setup() results Code tbl_format_setup(as_tbl(mtcars), width = 80) Output # A data frame: 32 x 11 mpg cyl disp hp drat wt qsec vs am gear carb * 1 21 6 160 110 3.9 2.62 16.5 0 1 4 4 2 21 6 160 110 3.9 2.88 17.0 0 1 4 4 3 22.8 4 108 93 3.85 2.32 18.6 1 1 4 1 4 21.4 6 258 110 3.08 3.22 19.4 1 0 3 1 5 18.7 8 360 175 3.15 3.44 17.0 0 0 3 2 6 18.1 6 225 105 2.76 3.46 20.2 1 0 3 1 7 14.3 8 360 245 3.21 3.57 15.8 0 0 3 4 8 24.4 4 147. 62 3.69 3.19 20 1 0 4 2 9 22.8 4 141. 95 3.92 3.15 22.9 1 0 4 2 10 19.2 6 168. 123 3.92 3.44 18.3 1 0 4 4 # i 22 more rows Code tbl_format_setup(as_tbl(mtcars), width = 30, n = 8) Output # A data frame: 32 x 11 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 # i 24 more rows # i 7 more variables: # drat , wt , # qsec , vs , # am , gear , # carb Code tbl_format_setup(as_tbl(trees), width = 30, n = 100) Output # A data frame: 31 x 3 Girth Height Volume 1 8.3 70 10.3 2 8.6 65 10.3 3 8.8 63 10.2 4 10.5 72 16.4 5 10.7 81 18.8 6 10.8 83 19.7 7 11 66 15.6 8 11 75 18.2 9 11.1 80 22.6 10 11.2 75 19.9 11 11.3 79 24.2 12 11.4 76 21 13 11.4 76 21.4 14 11.7 69 21.3 15 12 75 19.1 16 12.9 74 22.2 17 12.9 85 33.8 18 13.3 86 27.4 19 13.7 71 25.7 20 13.8 64 24.9 21 14 78 34.5 22 14.2 80 31.7 23 14.5 74 36.3 24 16 72 38.3 25 16.3 77 42.6 26 17.3 81 55.4 27 17.5 82 55.7 28 17.9 80 58.3 29 18 80 51.5 30 18 80 51 31 20.6 87 77 Code # Unknown rows tbl_format_setup(as_unknown_rows(trees[1:9, ]), width = 30, n = 10) Output # Unknown rows: ?? x 3 Girth Height Volume 1 8.3 70 10.3 2 8.6 65 10.3 3 8.8 63 10.2 4 10.5 72 16.4 5 10.7 81 18.8 6 10.8 83 19.7 7 11 66 15.6 8 11 75 18.2 9 11.1 80 22.6 Code tbl_format_setup(as_unknown_rows(trees[1:10, ]), width = 30, n = 10) Output # Unknown rows: ?? x 3 Girth Height Volume 1 8.3 70 10.3 2 8.6 65 10.3 3 8.8 63 10.2 4 10.5 72 16.4 5 10.7 81 18.8 6 10.8 83 19.7 7 11 66 15.6 8 11 75 18.2 9 11.1 80 22.6 10 11.2 75 19.9 Code tbl_format_setup(as_unknown_rows(trees[1:11, ]), width = 30, n = 10) Output # Unknown rows: ?? x 3 Girth Height Volume 1 8.3 70 10.3 2 8.6 65 10.3 3 8.8 63 10.2 4 10.5 72 16.4 5 10.7 81 18.8 6 10.8 83 19.7 7 11 66 15.6 8 11 75 18.2 9 11.1 80 22.6 10 11.2 75 19.9 # i more rows Code # No rows tbl_format_setup(new_tbl(list(a = character(), b = logical())), width = 30) Output # A data frame: 0 x 2 # i 2 variables: a , # b Code # No columns tbl_format_setup(as_tbl(trees[character()]), width = 30, n = 5L) Output # A data frame: 31 x 0 Code # No rows, unknown tbl_format_setup(as_unknown_rows(trees[integer(), ]), width = 30, n = 5L) Output # Unknown rows: ?? x 3 # i 3 variables: Girth , # Height , # Volume Code # No columns, unknown tbl_format_setup(as_unknown_rows(trees[, character()]), width = 30, n = 5L) Output # Unknown rows: ?? x 0 # i at least 5 rows total Code # Long table, unknown tbl_format_setup(as_unknown_rows(new_tbl(list(a = seq.int(10000)))), n = 5L, width = 30L) Output # Unknown rows: ?? x 1 a 1 1 2 2 3 3 4 4 5 5 # i more rows Code # Long table, unknown, default tbl_format_setup(as_unknown_rows(new_tbl(list(a = seq.int(5)))), n = structure( 3, max = 6), width = 60L) Output # Unknown rows: ?? x 1 a 1 1 2 2 3 3 4 4 5 5 # tbl_format_setup() for footnotes Code tbl_format_setup(width = 73, as_tbl(data_frame(xxxabc = 1, xxxdef = 1, xxxghi = 1, xxxjkl = 1, xxxmno = 1, xxxpqr = 1, xxxstu = 1, xxxvwx = 1, xxxyza = 1, xxxbcd = 1, xxxefg = 1, xxxhij = 1, xxxklm = 1, xxxnop = 1))) Output # A data frame: 1 x 14 xxxabc xxxdef xxxghi xxxjkl xxxmno xxxpqr xxxstu xxxvwx xxxyza xxxbcd 1 1 1 1 1 1 1 1 1 1 1 # i 4 more variables: xxxefg , xxxhij , xxxklm , # xxxnop # tbl_format_setup() for footnotes with min_title_chars = 4 Code tbl_format_setup(width = 73, as_tbl(data_frame(xxxabc = 1, xxxdef = 1, xxxghi = 1, xxxjkl = 1, xxxmno = 1, xxxpqr = 1, xxxstu = 1, xxxvwx = 1, xxxyza = 1, xxxbcd = 1, xxxefg = 1, xxxhij = 1, xxxklm = 1, xxxnop = 1))) Output # A data frame: 1 x 14 xxxabc xxxdef xxxghi xxxjkl xxxmno xxxpqr xxxstu xxxvwx xxxyza xxxbcd 1 1 1 1 1 1 1 1 1 1 1 # i 4 more variables: xxxefg , xxxhij , xxxklm , # xxxnop # tbl_format_setup() for footnotes with UTF-8 output Code tbl_format_setup(width = 73, as_tbl(data_frame(xxxabc = 1, xxxdef = 1, xxxghi = 1, xxxjkl = 1, xxxmno = 1, xxxpqr = 1, xxxstu = 1, xxxvwx = 1, xxxyza = 1, xxxbcd = 1, xxxefg = 1, xxxhij = 1, xxxklm = 1, xxxnop = 1))) Output # A data frame: 1 × 14 xxxabc xxxdef xxxghi xxxjkl xxxmno xxxpqr xxxstu xxxvwx xxxyza xxxbcd 1 1 1 1 1 1 1 1 1 1 1 # ℹ 4 more variables: xxxefg , xxxhij , xxxklm , # xxxnop