Skip to content
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

Suppress "" in write_csv #116

Closed
wdenton opened this issue Apr 11, 2015 · 3 comments
Closed

Suppress "" in write_csv #116

wdenton opened this issue Apr 11, 2015 · 3 comments

Comments

@wdenton
Copy link

wdenton commented Apr 11, 2015

write.csv has the quote parameter that controls whether or not the values are wrapped in "quotes". I suggest adding this to write_csv.

I just used readr (and dplyr) to consolidate a huge data file into something smaller and more useful (thank you!). It's mostly two- and three-letters codes, and they all ended up wrapped in quotes when they didn't need to be. It would be nice to be able to turn this off when desired.

@hadley
Copy link
Member

hadley commented Apr 13, 2015

I'd rather not have this been an option as it adds complexity and makes it easier to create invalid csv files. It might be possible to only quote if the cell text contains a comma or quote.

@wdenton
Copy link
Author

wdenton commented Apr 13, 2015

A quote-only-when-necessary option would be perfect.

@hadley
Copy link
Member

hadley commented Apr 13, 2015

But I don't think that would need to be an option - I'd just always do it

@hadley hadley closed this as completed in a95d623 Apr 16, 2015
@lock lock bot locked and limited conversation to collaborators Sep 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants