rostools / r-cubed-intermediate

Reproducible Research in R: An Intermediate Workshop on Modern Approaches and Workflows to Processing Data
https://r-cubed-intermediate.rostools.org/
Other
5 stars 4 forks source link

Read column specifications using readr::spec_csv() #15

Open AndersAskeland opened 1 year ago

AndersAskeland commented 1 year ago

In the data import section, one could use readr::spec_csv() to investigate the specifications of the data without actually reading it in to memory.

One negative is that vroom does not have this function, which could create some confusion in relation to why they are using vroom.

lwjohnst86 commented 1 year ago

Thanks for the issue! I think we should switch strongly consider switching to readr instead of vroom (since vroom is already being used by readr).

lwjohnst86 commented 5 months ago

Seems spec_csv() still uses version 1 of readr's code, rather than the updated vroom internal: https://github.com/tidyverse/readr/issues/1387 so keeping this on hold and hopefully they'll update by next year's course.