| 1 | # output test |
| 2 | |
| 3 | Code |
| 4 | pillar(add_special(letters[1:5])) |
| 5 | Output |
| 6 | <pillar> |
| 7 | <chr> |
| 8 | a |
| 9 | b |
| 10 | c |
| 11 | d |
| 12 | e |
| 13 | <NA> |
| 14 | Code |
| 15 | pillar(add_special(paste(letters, collapse = ""))) |
| 16 | Output |
| 17 | <pillar> |
| 18 | <chr> |
| 19 | abcdefghijklmnopqrstuvwxyz |
| 20 | <NA> |
| 21 | Code |
| 22 | pillar(add_special(paste(letters, collapse = "")), width = 10) |
| 23 | Output |
| 24 | <pillar> |
| 25 | <chr> |
| 26 | abcdefghi~ |
| 27 | <NA> |
| 28 | Code |
| 29 | pillar(add_special(paste(letters, collapse = "")), width = 3) |
| 30 | Output |
| 31 | NULL |
| 32 | Code |
| 33 | pillar(add_special(c("")), width = 5) |
| 34 | Output |
| 35 | <pillar> |
| 36 | <chr> |
| 37 | "" |
| 38 | <NA> |
| 39 | Code |
| 40 | pillar(add_special(c(" ")), width = 5) |
| 41 | Output |
| 42 | <pillar> |
| 43 | <chr> |
| 44 | " " |
| 45 | <NA> |
| 46 | Code |
| 47 | pillar(add_special(c(" a")), width = 5) |
| 48 | Output |
| 49 | <pillar> |
| 50 | <chr> |
| 51 | " a" |
| 52 | <NA> |
| 53 | Code |
| 54 | pillar(add_special(c("a ")), width = 5) |
| 55 | Output |
| 56 | <pillar> |
| 57 | <chr> |
| 58 | "a " |
| 59 | <NA> |
| 60 | Code |
| 61 | pillar(add_special(c("a b")), width = 5) |
| 62 | Output |
| 63 | <pillar> |
| 64 | <chr> |
| 65 | a b |
| 66 | <NA> |
| 67 | Code |
| 68 | pillar(add_special(c("\t")), width = 10) |
| 69 | Output |
| 70 | <pillar> |
| 71 | <chr> |
| 72 | "\t" |
| 73 | <NA> |
| 74 | Code |
| 75 | pillar(add_special(c("a\nb")), width = 10) |
| 76 | Output |
| 77 | <pillar> |
| 78 | <chr> |
| 79 | "a\nb" |
| 80 | <NA> |
| 81 | Code |
| 82 | pillar(add_special(c("a\001b")), width = 10) |
| 83 | Output |
| 84 | <pillar> |
| 85 | <chr> |
| 86 | "a\u0001b" |
| 87 | <NA> |
| 88 | |
| 89 | # output test (not on Windows) |
| 90 | |
| 91 | Code |
| 92 | pillar(add_special("成交日"), title = "成交") |
| 93 | Output |
| 94 | <pillar> |
| 95 | 成交 |
| 96 | <chr> |
| 97 | 成交日 |
| 98 | <NA> |
| 99 | Code |
| 100 | pillar(add_special("成交"), title = "成交日") |
| 101 | Output |
| 102 | <pillar> |
| 103 | 成交日 |
| 104 | <chr> |
| 105 | 成交 |
| 106 | <NA> |
| 107 | Code |
| 108 | pillar(add_special(1L), title = "成交日") |
| 109 | Output |
| 110 | <pillar> |
| 111 | 成交日 |
| 112 | <int> |
| 113 | 1 |
| 114 | NA |
| 115 | |
| 116 | --- |
| 117 | |
| 118 | Code |
| 119 | ctl_colonnade(chartype_frame(), width = 50) |
| 120 | Output |
| 121 | $body |
| 122 | chars desc |
| 123 | <chr> <chr> |
| 124 | 1 "\u0001\u001f" C0 control code |
| 125 | 2 "\a\b\f\n\r\t" Named control code |
| 126 | 3 "abcdefuvwxyz" ASCII |
| 127 | 4 "\u0080\u009f" C1 control code |
| 128 | 5 " ¡¢£¤¥úûüýþÿ" Latin-1 |
| 129 | 6 "ĀāĂ㥹ĆćĈĉĊċ" Unicode |
| 130 | 7 "!"#$%&" Unicode wide |
| 131 | 8 "\u0e00\u2029" Unicode control |
| 132 | 9 "xxxxxxx͏xxxx󠇯x" Unicode ignorable |
| 133 | 10 "àáâãāa̅ăȧäảåa̋" Unicode mark |
| 134 | 11 "😀😁😂😃😄💃" Emoji |
| 135 | 12 "x\U0010ffffx" Unassigned |
| 136 | 13 "\xfd\xfe\xff" Invalid |
| 137 | 14 "\\" Backslash |
| 138 | 15 "\"" Quote |
| 139 | |
| 140 | $extra_cols |
| 141 | list() |
| 142 | |
| 143 | $abbrev_cols |
| 144 | character(0) |
| 145 | |
| 146 | $abbrev_col_idxs |
| 147 | numeric(0) |
| 148 | |
| 149 |