|
143 | 143 | ui_code_snippet( |
144 | 144 | "\n options(\n warnPartialMatchArgs = TRUE,\n warnPartialMatchDollar = TRUE,\n warnPartialMatchAttr = TRUE\n )") |
145 | 145 | Message |
146 | | - [36moptions[39m[33m([39m |
147 | | - warnPartialMatchArgs = [34mTRUE[39m, |
148 | | - warnPartialMatchDollar = [34mTRUE[39m, |
149 | | - warnPartialMatchAttr = [34mTRUE[39m |
| 146 | + [1moptions[22m[33m([39m |
| 147 | + warnPartialMatchArgs = [35mTRUE[39m, |
| 148 | + warnPartialMatchDollar = [35mTRUE[39m, |
| 149 | + warnPartialMatchAttr = [35mTRUE[39m |
150 | 150 | [33m)[39m |
151 | 151 |
|
152 | 152 | # ui_code_snippet() with vector input [plain] |
|
167 | 167 | ui_code_snippet(c("options(", " warnPartialMatchArgs = TRUE,", |
168 | 168 | " warnPartialMatchDollar = TRUE,", " warnPartialMatchAttr = TRUE", ")")) |
169 | 169 | Message |
170 | | - [36moptions[39m[33m([39m |
171 | | - warnPartialMatchArgs = [34mTRUE[39m, |
172 | | - warnPartialMatchDollar = [34mTRUE[39m, |
173 | | - warnPartialMatchAttr = [34mTRUE[39m |
| 170 | + [1moptions[22m[33m([39m |
| 171 | + warnPartialMatchArgs = [35mTRUE[39m, |
| 172 | + warnPartialMatchDollar = [35mTRUE[39m, |
| 173 | + warnPartialMatchAttr = [35mTRUE[39m |
174 | 174 | [33m)[39m |
175 | 175 |
|
176 | 176 | # ui_code_snippet() when language is not R [plain] |
|
199 | 199 | Code |
200 | 200 | ui_code_snippet("if (1) {true_val} else {false_val}") |
201 | 201 | Message |
202 | | - [31mif[39m [33m([39m[34m1[39m[33m)[39m [34mTRUE[39m [31melse[39m [33m'FALSE'[39m |
| 202 | + [33mif[39m [33m([39m[35m1[39m[33m)[39m [35mTRUE[39m [33melse[39m [36m'FALSE'[39m |
203 | 203 |
|
204 | 204 | # ui_code_snippet() can NOT interpolate [plain] |
205 | 205 |
|
|
217 | 217 | Code |
218 | 218 | ui_code_snippet("foo <- function(x){x}", interpolate = FALSE) |
219 | 219 | Message |
220 | | - foo [32m<-[39m [31mfunction[39m[33m([39mx[33m)[39m[33m{[39mx[33m}[39m |
| 220 | + foo [33m<-[39m [33mfunction[39m[33m([39mx[33m)[39m[33m{[39mx[33m}[39m |
221 | 221 | Code |
222 | 222 | ui_code_snippet("foo <- function(x){{x}}", interpolate = TRUE) |
223 | 223 | Message |
224 | | - foo [32m<-[39m [31mfunction[39m[33m([39mx[33m)[39m[33m{[39mx[33m}[39m |
| 224 | + foo [33m<-[39m [33mfunction[39m[33m([39mx[33m)[39m[33m{[39mx[33m}[39m |
225 | 225 |
|
226 | 226 | # bulletize() works |
227 | 227 |
|
|
0 commit comments