Skip to content

Error with dec=',', sep = 'auto' but detected as ',' #4483

@MichaelChirico

Description

@MichaelChirico

Possibly related: #2750

fread('A,B,C\n1,+,4\n2,-,5\n3,-,6\n', dec=',', verbose=TRUE)

Stopped early on line 2. Expected 3 fields but found 3. Consider fill=TRUE and comment.char=. First discarded non-empty line: <<1,+,4>>

with dec=',', +,4 reads as +.4.

But we've already detected sep=','... not sure the correct behavior for manually specified dec=','.

In any case the error message is strange "Expected 3 fields but found 3"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions