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

[bug] fread fails to read single-column file with fill=TRUE #2118

Closed
st-pasha opened this issue Apr 18, 2017 · 0 comments
Closed

[bug] fread fails to read single-column file with fill=TRUE #2118

st-pasha opened this issue Apr 18, 2017 · 0 comments
Labels
Milestone

Comments

@st-pasha
Copy link
Contributor

@st-pasha st-pasha commented Apr 18, 2017

Minimally reproducible example:

fread("1\n2\n3", fill=T)
# Error in fread("1\n2\n3", fill = T) : 
#   Internal error: ncol==0 line==1 after detecting sep, ncol and first line

There is a related bug (trivial to fix) there, in the error-reporting line:

STOP("Internal error: ncol==%d line==%d after detecting sep, ncol and first line");

here ncol and line are not passed as the varargs, which may result in random data being printed, or occasionally segfaulting.

@mattdowle mattdowle added this to the v1.10.6 milestone Apr 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants