Skip to content

\r no longer squashed in a single-column \r-only file - #2588

Merged
mattdowle merged 3 commits into
masterfrom
single_column_NA_when_line_feed_only
Jan 25, 2018
Merged

mattdowle merged 3 commits into
masterfrom
single_column_NA_when_line_feed_only

Conversation

@mattdowle

@mattdowle mattdowle commented Jan 25, 2018 •

Copy link
Copy Markdown
Member

Closes #2542

The single line ending \r\r\r (when no \n is present) is no longer supported. \r\r\r now means three line endings not one. It's only when \r occurs before or after a \n do multiple \r still get squashed (as is necessary when R's download.file() turns \r\n into \r\r\n on Windows in text mode).

This nicely revealed a few incorrectly passing tests on regular \n 1-column files with multiple \n\n at the end which should have been interpreted as NA at the end now that change is in dev. Fixed too.

@codecov-io

codecov-io commented Jan 25, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #2588 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2588      +/-   ##
==========================================
+ Coverage   91.43%   91.45%   +0.01%     
==========================================
  Files          63       63              
  Lines       12126    12130       +4     
==========================================
+ Hits        11088    11093       +5     
+ Misses       1038     1037       -1
Impacted Files Coverage Δ
src/fread.c 96.12% <100%> (+0.09%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b336e75...5d3f528. Read the comment docs.

@mattdowle
mattdowle requested a review from st-pasha January 25, 2018 04:05
@mattdowle mattdowle added this to the v1.10.6 milestone Jan 25, 2018
@mattdowle
mattdowle merged commit cc60b78 into master Jan 25, 2018
@mattdowle
mattdowle deleted the single_column_NA_when_line_feed_only branch January 25, 2018 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants