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

fwrite breaks can't appropriately deal with string starting with double qoutes #1925

Closed
amatsuo opened this issue Nov 23, 2016 · 1 comment
Closed
Milestone

Comments

@amatsuo
Copy link

@amatsuo amatsuo commented Nov 23, 2016

fwrite output leaves one double-quote without escaping for a string starting with a double quote. This would make an output unreadable.

Here is an example:

test.data <- data.frame(x = c("\"hello", "world"), y = 1:2 )
fwrite(test.data, '~/Desktop/temp.csv')

and the output csv file looks like this:

x,y
"hello,1
world,2
@MichaelChirico
Copy link
Member

@MichaelChirico MichaelChirico commented Nov 23, 2016

I don't think it's unreadable:

fread('x,y
"hello,1
world,2')
#         x y
# 1: "hello 1
# 2:  world 2

@mattdowle mattdowle added this to the v1.9.10 milestone Nov 28, 2016
@mattdowle mattdowle closed this in e03b926 Nov 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants