Skip to content

fread fails if whitespace before first character #1035

@dpastoor

Description

@dpastoor

The program I use by default gives output like so:

" ITERATION    THETA1       THETA2"                
"            0  3.95527E+01  2.10651E+01"

I first tried with the stable version (1.9.4) and got the following error:

Expected sep (',') but new line, EOF (or other non printing character) ends field 1 on line 4 when detecting types:             0  3.95527E+01  2.10651E+01 

with the development version (1.9.5) I get the following error:

Not positioned correctly after testing format of header row. ch=' '

This seems like it would be resolved by #758 or #558 (variable whitespace delimiter)

but just wanted to give another example of a situation where fread currently fails and need to fall back to read.table(sep="") to get the table to read in properly

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions