The CRAN (1.9.4) version of data.table silently ignores this issue and returns and empty object:
fread('2,3\n""foo,bar')
## Empty data.table (0 rows) of 1 col: "foo,bar
The development version (32975cd) fails with an error:
fread('2,3\n""foo,bar')
## Error in fread("2,3\n\"\"foo,bar") :
## Field 1 on line 2 starts with quote (") but then has a problem. It can contain balanced unescaped quoted subregions but if it does it can't contain embedded \n as well. Check for unbalanced unescaped quotes: ""foo,bar
I'm aware of the fact that this "CSV" is not well formed, but that's what I get :( Is there a way to sepcify something like quote=''?