Consider the following files:
file1.csv
file2.csv
file3.csv
file4.csv
Running fread('file2.csv') and fread('file4.csv') run smoothly. But fread('file1.csv') throws the following error:
Field 2 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: "oops" y1
And fread('file3.csv') throws a similar error:
Error in fread("testfile.csv") :
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: "oops" x1,y1
The only difference between the two pairs of files is that file1 and file3 have fields that begin with a " character, whereas there's a space before the " in the fields for file2 and file4. Recent changes to fread seem to have caused this error in v1.9.5, seeing as how v1.9.4 is able to parse all 4 files smoothly.
Consider the following files:
file1.csv
file2.csv
file3.csv
file4.csv
Running
fread('file2.csv')andfread('file4.csv')run smoothly. Butfread('file1.csv')throws the following error:And
fread('file3.csv')throws a similar error:Error in fread("testfile.csv") :
The only difference between the two pairs of files is that file1 and file3 have fields that begin with a " character, whereas there's a space before the " in the fields for file2 and file4. Recent changes to
freadseem to have caused this error in v1.9.5, seeing as how v1.9.4 is able to parse all 4 files smoothly.