|
13 | 13 |
|
14 | 14 | Code
|
15 | 15 | new_dribble(1:3)
|
16 |
| - Error <simpleError> |
17 |
| - `x` must be a list |
| 16 | + Condition |
| 17 | + Error: |
| 18 | + ! `x` must be a list |
18 | 19 |
|
19 | 20 | # validate_dribble() checks class, var names, var types
|
20 | 21 |
|
21 | 22 | Code
|
22 | 23 | validate_dribble("a")
|
23 |
| - Error <simpleError> |
24 |
| - inherits(x, "dribble") is not TRUE |
| 24 | + Condition |
| 25 | + Error in `validate_dribble()`: |
| 26 | + ! inherits(x, "dribble") is not TRUE |
25 | 27 |
|
26 | 28 | ---
|
27 | 29 |
|
28 | 30 | Code
|
29 | 31 | validate_dribble(d)
|
30 |
| - Error <rlang_error> |
31 |
| - Invalid <dribble>. This column has the wrong type: |
| 32 | + Condition |
| 33 | + Error in `validate_dribble()`: |
| 34 | + ! Invalid <dribble>. This column has the wrong type: |
32 | 35 | * `id`
|
33 | 36 |
|
34 | 37 | ---
|
35 | 38 |
|
36 | 39 | Code
|
37 | 40 | validate_dribble(d)
|
38 |
| - Error <rlang_error> |
39 |
| - Invalid <dribble>. These columns have the wrong type: |
| 41 | + Condition |
| 42 | + Error in `validate_dribble()`: |
| 43 | + ! Invalid <dribble>. These columns have the wrong type: |
40 | 44 | * `name`
|
41 | 45 | * `id`
|
42 | 46 |
|
43 | 47 | ---
|
44 | 48 |
|
45 | 49 | Code
|
46 | 50 | validate_dribble(d)
|
47 |
| - Error <rlang_error> |
48 |
| - Invalid <dribble>. This required column is missing: |
| 51 | + Condition |
| 52 | + Error in `validate_dribble()`: |
| 53 | + ! Invalid <dribble>. This required column is missing: |
49 | 54 | * `name`
|
50 | 55 |
|
51 | 56 | ---
|
52 | 57 |
|
53 | 58 | Code
|
54 | 59 | validate_dribble(d)
|
55 |
| - Error <rlang_error> |
56 |
| - Invalid <dribble>. These required columns are missing: |
| 60 | + Condition |
| 61 | + Error in `validate_dribble()`: |
| 62 | + ! Invalid <dribble>. These required columns are missing: |
57 | 63 | * `name`
|
58 | 64 | * `id`
|
59 | 65 |
|
60 | 66 | ---
|
61 | 67 |
|
62 | 68 | Code
|
63 | 69 | validate_dribble(d)
|
64 |
| - Error <rlang_error> |
65 |
| - Invalid <dribble>. Can't confirm `kind = "drive#file"` or `kind = "drive#drive"` for all elements of the `drive_resource` column. |
| 70 | + Condition |
| 71 | + Error in `validate_dribble()`: |
| 72 | + ! Invalid <dribble>. Can't confirm `kind = "drive#file"` or `kind = "drive#drive"` for all elements of the `drive_resource` column. |
66 | 73 |
|
67 | 74 | # dribble nrow checkers work
|
68 | 75 |
|
69 | 76 | Code
|
70 | 77 | confirm_single_file(d)
|
71 |
| - Error <rlang_error> |
72 |
| - `d` does not identify at least one Drive file. |
| 78 | + Condition |
| 79 | + Error in `confirm_single_file()`: |
| 80 | + ! `d` does not identify at least one Drive file. |
73 | 81 |
|
74 | 82 | ---
|
75 | 83 |
|
76 | 84 | Code
|
77 | 85 | confirm_some_files(d)
|
78 |
| - Error <rlang_error> |
79 |
| - `d` does not identify at least one Drive file. |
| 86 | + Condition |
| 87 | + Error in `confirm_some_files()`: |
| 88 | + ! `d` does not identify at least one Drive file. |
80 | 89 |
|
81 | 90 | ---
|
82 | 91 |
|
83 | 92 | Code
|
84 | 93 | confirm_single_file(d)
|
85 |
| - Error <rlang_error> |
86 |
| - `d` identifies more than one Drive file. |
| 94 | + Condition |
| 95 | + Error in `confirm_single_file()`: |
| 96 | + ! `d` identifies more than one Drive file. |
87 | 97 |
|
88 | 98 | # as_dribble() default method handles unsuitable input
|
89 | 99 |
|
90 | 100 | Code
|
91 | 101 | as_dribble(1.3)
|
92 |
| - Error <rlang_error> |
93 |
| - Don't know how to coerce an object of class <numeric> into a <dribble>. |
| 102 | + Condition |
| 103 | + Error in `as_dribble()`: |
| 104 | + ! Don't know how to coerce an object of class <numeric> into a <dribble>. |
94 | 105 |
|
95 | 106 | ---
|
96 | 107 |
|
97 | 108 | Code
|
98 | 109 | as_dribble(TRUE)
|
99 |
| - Error <rlang_error> |
100 |
| - Don't know how to coerce an object of class <logical> into a <dribble>. |
| 110 | + Condition |
| 111 | + Error in `as_dribble()`: |
| 112 | + ! Don't know how to coerce an object of class <logical> into a <dribble>. |
101 | 113 |
|
102 | 114 | # as_dribble.list() catches bad input
|
103 | 115 |
|
104 | 116 | Code
|
105 | 117 | as_dribble(list(drib_lst))
|
106 |
| - Error <simpleError> |
107 |
| - map_lgl(x, ~all(required_nms %in% names(.x))) is not TRUE |
| 118 | + Condition |
| 119 | + Error in `as_dribble.list()`: |
| 120 | + ! map_lgl(x, ~all(required_nms %in% names(.x))) is not TRUE |
108 | 121 |
|
109 | 122 | ---
|
110 | 123 |
|
111 | 124 | Code
|
112 | 125 | as_dribble(list(drib_lst))
|
113 |
| - Error <rlang_error> |
114 |
| - Invalid <dribble>. Can't confirm `kind = "drive#file"` or `kind = "drive#drive"` for all elements of the `drive_resource` column. |
| 126 | + Condition |
| 127 | + Error in `validate_dribble()`: |
| 128 | + ! Invalid <dribble>. Can't confirm `kind = "drive#file"` or `kind = "drive#drive"` for all elements of the `drive_resource` column. |
115 | 129 |
|
116 | 130 | # as_parent() throws specific errors
|
117 | 131 |
|
118 | 132 | Code
|
119 | 133 | foo <- d[0, ]
|
120 | 134 | as_parent(foo)
|
121 |
| - Error <rlang_error> |
122 |
| - Parent specified via `foo` is invalid: |
| 135 | + Condition |
| 136 | + Error in `as_parent()`: |
| 137 | + ! Parent specified via `foo` is invalid: |
123 | 138 | x Does not exist.
|
124 | 139 |
|
125 | 140 | ---
|
126 | 141 |
|
127 | 142 | Code
|
128 | 143 | foo <- d
|
129 | 144 | as_parent(foo)
|
130 |
| - Error <rlang_error> |
131 |
| - Parent specified via `foo` is invalid: |
| 145 | + Condition |
| 146 | + Error in `as_parent()`: |
| 147 | + ! Parent specified via `foo` is invalid: |
132 | 148 | x Doesn't uniquely identify exactly one folder or shared drive.
|
133 | 149 |
|
134 | 150 | ---
|
135 | 151 |
|
136 | 152 | Code
|
137 | 153 | foo <- d[1, ]
|
138 | 154 | as_parent(foo)
|
139 |
| - Error <rlang_error> |
140 |
| - Parent specified via `foo` is invalid: |
| 155 | + Condition |
| 156 | + Error in `as_parent()`: |
| 157 | + ! Parent specified via `foo` is invalid: |
141 | 158 | x Is neither a folder nor a shared drive.
|
142 | 159 |
|
0 commit comments