|
2 | 2 |
|
3 | 3 | Code |
4 | 4 | resolve_bs_preset(preset = "name", bootswatch = "bootswatch") |
5 | | - Error <rlang_error> |
6 | | - Only one of `preset` or `bootswatch` may be provided (`preset` is the preferred choice). |
| 5 | + Condition |
| 6 | + Error in `resolve_bs_preset()`: |
| 7 | + ! Only one of `preset` or `bootswatch` may be provided (`preset` is the preferred choice). |
7 | 8 | i Did you mean one of the following options? |
8 | 9 | * `preset = "name"` |
9 | 10 | * `preset = "bootswatch"` |
|
13 | 14 |
|
14 | 15 | Code |
15 | 16 | resolve_bs_preset(preset = c("a", "b")) |
16 | | - Error <rlang_error> |
17 | | - The preset theme `preset` must be a single character string. |
| 17 | + Condition |
| 18 | + Error in `resolve_bs_preset()`: |
| 19 | + ! The preset theme `preset` must be a single character string. |
18 | 20 | x Bad: `preset = c("flatly", "darkly")` |
19 | 21 | v Good: `preset = "flatly"` |
20 | 22 |
|
21 | 23 | --- |
22 | 24 |
|
23 | 25 | Code |
24 | 26 | resolve_bs_preset(bootswatch = c("a", "b")) |
25 | | - Error <rlang_error> |
26 | | - The preset theme `bootswatch` must be a single character string. |
| 27 | + Condition |
| 28 | + Error in `resolve_bs_preset()`: |
| 29 | + ! The preset theme `bootswatch` must be a single character string. |
27 | 30 | x Bad: `bootswatch = c("flatly", "darkly")` |
28 | 31 | v Good: `bootswatch = "flatly"` |
29 | 32 |
|
30 | 33 | # resolve_bs_preset(): throws an error if `name` or `bootswatch` don't match existing presets |
31 | 34 |
|
32 | 35 | Code |
33 | 36 | resolve_bs_preset(preset = "not_a_preset", version = 4) |
34 | | - Error <rlang_error> |
35 | | - 'not_a_preset' is not a known preset theme name for Bootstrap version 4. |
| 37 | + Condition |
| 38 | + Error in `resolve_bs_preset()`: |
| 39 | + ! 'not_a_preset' is not a known preset theme name for Bootstrap version 4. |
36 | 40 | i You can list available preset themes: |
37 | 41 | * Built-in: `builtin_themes(4)` |
38 | 42 | * Bootswatch: `bootswatch_themes(4)`. |
|
41 | 45 |
|
42 | 46 | Code |
43 | 47 | resolve_bs_preset(bootswatch = "not_a_preset", version = 4) |
44 | | - Error <rlang_error> |
45 | | - 'not_a_preset' is not a known preset theme name for Bootstrap version 4. |
| 48 | + Condition |
| 49 | + Error in `resolve_bs_preset()`: |
| 50 | + ! 'not_a_preset' is not a known preset theme name for Bootstrap version 4. |
46 | 51 | i You can list available preset themes: |
47 | 52 | * Built-in: `builtin_themes(4)` |
48 | 53 | * Bootswatch: `bootswatch_themes(4)`. |
|
0 commit comments