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

blank.lines.skip=TRUE malfunctions when sep is ' ' #2535

Closed
st-pasha opened this issue Dec 23, 2017 · 0 comments
Closed

blank.lines.skip=TRUE malfunctions when sep is ' ' #2535

st-pasha opened this issue Dec 23, 2017 · 0 comments
Milestone

Comments

@st-pasha
Copy link
Contributor

@st-pasha st-pasha commented Dec 23, 2017

First case throws an exception even though it shouldn't; second case ignores the option blank.lines.skip=TRUE.

> fread("a b 2\nc d 3\n\ne f 4\n", blank.lines.skip=T)
Error in fread("a b 2\nc d 3\n\ne f 4\n", blank.lines.skip = T) : 
  Expecting 3 cols but row 0 contains only 0 cols (sep=' '). Consider fill=true. <<>>

> fread("a b 2\nc d 3\n\ne f 4\n", blank.lines.skip=T, fill=T)
   V1 V2 V3
1:  a  b  2
2:  c  d  3
3:       NA
4:  e  f  4
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

1 participant