Skip to content

is it possible to ignore error and coninue reading from file #2496

Description

@huashan

I am trying to read from several huge files which may contain embedded null strings in some lines. fread() always stops with message "Jump %d did not finish counting rows exactly where jump %d found its first good line start".

Since I have some many files to read and I don't care to lose some broken lines of data, is it possible to let fread() just ignore the error and continue reading?

Activity

  1. MichaelChirico commented on Nov 22, 2017

    @MichaelChirico
    Member
  2. huashan commented on Nov 23, 2017

    @huashan
    Author

    @MichaelChirico

    The data.table version is 1.10.5 release, with the above message "Jump %d did not finish counting rows exactly where jump %d found its first good line start".

    I also tried earlier versions of data.table, from 1.9.7 to 1.10.4, all report error message with "embedded null string".

  3. huashan commented on Nov 23, 2017

    @huashan
    Author

    @MichaelChirico

    FYI, for version 1.10.5, if I set quote="" in fread() causes R crashes.

  4. added this to the milestone on Feb 14, 2018
  5. modified the milestones: v1.11.0, on Apr 29, 2018
  6. modified the milestones: 1.12.0, 1.12.2 on Jan 11, 2019
  7. jangorecki commented on Jan 7, 2024

    @jangorecki
    Member

    please provide reproducible example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions