-
Notifications
You must be signed in to change notification settings - Fork 991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CSVY support for fread() #1701
Comments
Just documenting how the
Major inefficiencies are:
My proposed solution (if we decide to tackle this):
Remaining API Q for me are: (1) do we try and detect For (1) I lean towards the latter primarily out of laziness (more sophisticated -- doesn't seem to pass the cost/benefit test given limited user requests for this feature). We can revisit in a future issue if this becomes more popular, I suppose. No opinions on (2), I only include it since we seem to be aiming to keep |
Also |
@HughParsonage that still leaves the issue of reading the file twice. The idea of streaming lines is to examine the file line-by-line and only read in, say, 10-20 lines of YAML metadata using (anyway good to know they're finally getting around to improving |
I would avoid extra dependency, even in suggests, and use some helper function to extract fields from yaml header. Similar way as we would process DESCRIPTION file. Fwrite should be able to write csvy header the way that fread can read it. |
as yaml can be arbitrarily nested I didn't see a need to reinvent the wheel. especially as it seems at the moment to be a rather limited use case -- happy to revisit if this format takes off. |
|
The rio already allows reading of csvy formats by relying on the helper package (same author) csvy. It'd be great to leverage its features to read/write.
The text was updated successfully, but these errors were encountered: