-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Use readr::read_delim as a parser for httr::content()? #239
Comments
Yes - I also need to replace |
You seem to be implicitly creating a standard for bringing (tabular) data into a data.frame-flavored object. Is there an actual one written down somewhere or lurking in your head? In googlesheets, I must either parse content with MIME type These seem to be key parts of the data ingest contract (paraphrasing from various docs and READMEs):
Stuff under discussion that I'm especially interested in:
Not sure |
Yeah, that's everything I can think of. I've included some of these points in a recent slide deck, but there's nothing official in the documentation anywhere (not least because it's not clear where it should go) |
There's a nice consistent thing going on in
readr
andreadxl
re:col_names
andcol_types
. Andread_delim()
has lots of other useful features, e.g. not converting character to factor. It would be great to exploit all of that when parsing the content of requests inhttr
. Do you have any plans to switch over toreadr::read_delim()
when MIME type istext/csv
ortext/tab-separated-values
?Context: I want to bring Google Sheets into R in a way that's as compatible as possible with those other packages, with minimal fuss under the hood. If
text/csv
content was parsed withreadr::read_csv()
, that would go a long way. (I realize I can do this already by settingas = "text"
and parsing myself withread_csv()
.)The text was updated successfully, but these errors were encountered: