Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
huashan opened this issue Nov 22, 2017 · 4 comments
Closed

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

huashan opened this issue Nov 22, 2017 · 4 comments

Comments

@huashan
Copy link

huashan commented Nov 22, 2017

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?

@MichaelChirico
Copy link
Member

MichaelChirico commented Nov 22, 2017 via email

@huashan
Copy link
Author

huashan commented Nov 23, 2017

@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".

@huashan
Copy link
Author

huashan commented Nov 23, 2017

@MichaelChirico

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

@st-pasha st-pasha added the fread label Nov 28, 2017
@st-pasha st-pasha added the bug label Nov 28, 2017
@mattdowle mattdowle added this to the v1.10.6 milestone Feb 14, 2018
@mattdowle mattdowle modified the milestones: v1.11.0, v1.11.2 Apr 29, 2018
@mattdowle mattdowle modified the milestones: 1.12.0, 1.12.2 Jan 11, 2019
@jangorecki
Copy link
Member

please provide reproducible example

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

No branches or pull requests

5 participants