Throw Warning When Reading File with Blank Lines#7707
Throw Warning When Reading File with Blank Lines#7707Asa-Henry wants to merge 3 commits intoRdatatable:masterfrom
Conversation
…t it doesn't solve the problem yet.
…kip' is greater than 0 when blank lines are present, so I also check if blank lines should be skipped so I can throw a warning to let the user know.
|
PR could have meaningful title |
|
please add a test case |
|
This is a good start. Can you run You can see that the tests don't pass. I think that tests 1578.1, 1578.2, 1578.6, 1883 will need to be updated for the new warning, possibly 1867.07 and 1867.11 too. Unfortunately, other tests show a regression:
Any ideas how the spurious warnings can be fixed? If you need to debug |
|
Thanks for this comprehensive response @aitap! This made it easier to understand what went wrong with my changes! In response to your question: it appears I introduced confusion between a file with intermittent blank lines and a file which has the header and the data separated by a blank line. For issues such as 1840.2, looks like I over looked how spaces come into play when parsing... I picked up on that |
Adds a check to detect when blank lines are present in the file passed to
fread, but the user did not specify to skip blank lines. This change throws a warning to let the user know they may want to consider setting theblank.lines.skiptoTRUE.