Closed sbearrows closed 2 years ago
Also, this in the PR description:
Fixes #416,#455
won't actually close the second issue.
See the bit about "Multiple issues"
Okay, I think this is ready for another review @jennybc
I've opened an issue concerning col_select = list()
in readr here https://github.com/tidyverse/readr/issues/1421
There was one list()
I missed and then it looks like the docs for vroom_fwf(col_select=)
comes from readr::read_fwf()
so I think that should be fixed in the readr PR. But it also feels like readr should inherit from vroom and not the other way around?
the docs for
vroom_fwf(col_select=)
comes fromreadr::read_fwf()
so I think that should be fixed in the readr PR. But it also feels like readr should inherit from vroom and not the other way around?
Yes, I think the definitive docs for col_select
should live in vroom because readr 1e doesn't actually implement col_select
. Anyone successfully calling readr with col_select
is actually calling vroom.
Okay, I think we should do that in a separate PR and push what we have now. I've opened an issue https://github.com/tidyverse/vroom/issues/461 to update the docs for vroom so that they aren't inherited from readr
Fixes #416, Fixes #455
The
id
column now does not have to be included incol_select
(but still can be).This PR also fixes a bug when providing numeric column positions to
col_select
when theid
column was provided. Previously, when indexing columns, indexing started atid
rather than the first column position making it impossible to select some column positions numerically.Numeric positions now relate only to the original data and the id column is included by default.