Commit 9c17094
committed
Remove unnecessary/misleading
`select.epi_df` looked weird:
- `reclass(selected, attr(selected, "metadata"))` would only have made sense if
grouped_df had a `select` that dropped our class but not our metadata,
implemented in a way that called our own impls for `dplyr_extending` that would
make that metadata actually be correct (in the case of renaming).
- (`dplyr_reconstruct(selected, selected)` might have made sense, if `reclass`
acted on something that shouldn't actually become an `epi_df`, decaying back to
a non-`epi_df` only if needed.)
So it seemed like it relied on `dplyr_extending` being almost, but not quite,
sufficient. But it looks like `grouped_df` doesn't even have a `select` impl, so
it's not interfering anyway! So it looks like we can just get rid of our own
impl.select.epi_df implementation1 parent cfeda76 commit 9c17094
File tree
3 files changed
+20
-10
lines changed- R
- tests/testthat
3 files changed
+20
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
177 | 176 | | |
178 | 177 | | |
179 | 178 | | |
180 | 179 | | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
181 | 200 | | |
182 | 201 | | |
183 | 202 | | |
| |||
0 commit comments