{"action":"opened","issue":{"url":"https://api.github.com/repos/hadley/readr/issues/311","labels_url":"https://api.github.com/repos/hadley/readr/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/hadley/readr/issues/311/comments","events_url":"https://api.github.com/repos/hadley/readr/issues/311/events","html_url":"https://github.com/hadley/readr/issues/311","id":116656448,"number":311,"title":"keeping double quotes","user":{"login":"ldecicco-USGS","id":1105215,"avatar_url":"https://avatars.githubusercontent.com/u/1105215?v=3","gravatar_id":"","url":"https://api.github.com/users/ldecicco-USGS","html_url":"https://github.com/ldecicco-USGS","followers_url":"https://api.github.com/users/ldecicco-USGS/followers","following_url":"https://api.github.com/users/ldecicco-USGS/following{/other_user}","gists_url":"https://api.github.com/users/ldecicco-USGS/gists{/gist_id}","starred_url":"https://api.github.com/users/ldecicco-USGS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldecicco-USGS/subscriptions","organizations_url":"https://api.github.com/users/ldecicco-USGS/orgs","repos_url":"https://api.github.com/users/ldecicco-USGS/repos","events_url":"https://api.github.com/users/ldecicco-USGS/events{/privacy}","received_events_url":"https://api.github.com/users/ldecicco-USGS/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-12T22:31:03Z","updated_at":"2015-11-12T22:31:03Z","closed_at":null,"body":"There are times when I have double quotes in my character columns that I would like to keep. For example:\r\n\r\n```\r\nread_tsv('A\\tB\\tC\\na\\t\"HIT BOTTOM\" HIT PLANTS,Analyzed \\t Hi \\n')\r\nWarning: 3 parsing failures.\r\nrow col                     expected    actual\r\n  1  B  delimiter or quote                    \r\n  1  B  closing quote at end of file          \r\n  1  -- 3 columns                    2 columns\r\nSource: local data frame [1 x 3]\r\n\r\n      A                                       B     C\r\n  (chr)                                   (chr) (chr)\r\n1     a HIT BOTTOM\" HIT PLANTS,Analyzed \\t Hi \\n    NA\r\n\r\n#compare to fread:\r\nfread('A\\tB\\tC\\na\\t\"HIT BOTTOM\" HIT PLANTS,Analyzed \\t Hi \\n')\r\n   A                                B  C\r\n1: a \"HIT BOTTOM\" HIT PLANTS,Analyzed Hi\r\n```\r\n\r\nThere seem to be 2 issues with the `readr` output. One is that the first quote goes missing. Two (probably due to one) is the '\\t Hi \\n' are getting inserted into column B, where there should be a 'Hi' in column C."}}