|
1 | 1 | # xml_find_num errors with non numeric results |
2 | 2 |
|
3 | | - Element at path `//z` must be a number, not a <xml_missing> object. |
| 3 | + Code |
| 4 | + xml_find_num(x, "//z") |
| 5 | + Condition |
| 6 | + Error in `xml_find_num()`: |
| 7 | + ! Element at path `//z` must be a number, not a <xml_missing> object. |
| 8 | + Code |
| 9 | + xml_find_num(x, "//y") |
| 10 | + Condition |
| 11 | + Error in `xml_find_num()`: |
| 12 | + ! Element at path `//y` must be a number, not a list. |
| 13 | + Code |
| 14 | + xml_find_num(x, "1=1") |
| 15 | + Condition |
| 16 | + Error in `xml_find_num()`: |
| 17 | + ! Element at path `1=1` must be a number, not `TRUE`. |
| 18 | + Code |
| 19 | + xml_find_num(x, "string(5)") |
| 20 | + Condition |
| 21 | + Error in `xml_find_num()`: |
| 22 | + ! Element at path `string(5)` must be a number, not the string "5". |
4 | 23 |
|
5 | 24 | # xml_find_int errors with non integer results |
6 | 25 |
|
|
22 | 41 |
|
23 | 42 | # xml_find_chr errors with non character results |
24 | 43 |
|
25 | | - Element at path `//z` must be a single string, not a <xml_missing> object. |
| 44 | + Code |
| 45 | + xml_find_chr(x, "//z") |
| 46 | + Condition |
| 47 | + Error in `xml_find_chr()`: |
| 48 | + ! Element at path `//z` must be a single string, not a <xml_missing> object. |
| 49 | + Code |
| 50 | + xml_find_chr(x, "//y") |
| 51 | + Condition |
| 52 | + Error in `xml_find_chr()`: |
| 53 | + ! Element at path `//y` must be a single string, not a list. |
| 54 | + Code |
| 55 | + xml_find_chr(x, "1=1") |
| 56 | + Condition |
| 57 | + Error in `xml_find_chr()`: |
| 58 | + ! Element at path `1=1` must be a single string, not `TRUE`. |
| 59 | + Code |
| 60 | + xml_find_chr(x, "1+1") |
| 61 | + Condition |
| 62 | + Error in `xml_find_chr()`: |
| 63 | + ! Element at path `1+1` must be a single string, not the number 2. |
26 | 64 |
|
27 | 65 | # xml_find_lgl errors with non logical results |
28 | 66 |
|
29 | | - Element at path `//z` must be `TRUE` or `FALSE`, not a <xml_missing> object. |
| 67 | + Code |
| 68 | + xml_find_lgl(x, "//z") |
| 69 | + Condition |
| 70 | + Error in `xml_find_lgl()`: |
| 71 | + ! Element at path `//z` must be `TRUE` or `FALSE`, not a <xml_missing> object. |
| 72 | + Code |
| 73 | + xml_find_lgl(x, "//y") |
| 74 | + Condition |
| 75 | + Error in `xml_find_lgl()`: |
| 76 | + ! Element at path `//y` must be `TRUE` or `FALSE`, not a list. |
| 77 | + Code |
| 78 | + xml_find_lgl(x, "string(5)") |
| 79 | + Condition |
| 80 | + Error in `xml_find_lgl()`: |
| 81 | + ! Element at path `string(5)` must be `TRUE` or `FALSE`, not the string "5". |
| 82 | + Code |
| 83 | + xml_find_lgl(x, "1+1") |
| 84 | + Condition |
| 85 | + Error in `xml_find_lgl()`: |
| 86 | + ! Element at path `1+1` must be `TRUE` or `FALSE`, not the number 2. |
30 | 87 |
|
0 commit comments