-
Notifications
You must be signed in to change notification settings - Fork 286
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
write_csv should have option to quote character variables #653
Comments
Ok, I agree it should be possible to force quoting if desired. |
Agreed. See |
+1000. Protecting text fields with commas in them is super-important! Falling back to |
@bbolker |
sorry, I ran into some issues last night that made me think otherwise, but it was late. (Actually I think the problem was OpenOffice deciding it should split fields on semicolons as well as commas ...) |
I'm curious if this open issue is truly open, or if there's a workaround that's commonly used (apart from |
One straightforward way to do this is to call |
Is there still no built-in way for forcing quotes on all columns? |
write_csv(x, file, quote = "all") |
Perhaps I've missed an option, but I don't see how to have
write_csv
quote strings. This creates problems when strings look like integers.Obviously in the read statements one could set
guess_max=Inf
, but it would be helpful to write quoted strings in the first place.The text was updated successfully, but these errors were encountered: