-
Notifications
You must be signed in to change notification settings - Fork 286
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
Allow read_lines to gracefully skip null values #338
Labels
feature
a feature request or enhancement
Comments
Is there some reason that even needs to be an option? Why shouldn't it always do so? |
Come to think of it, I don't really see any need to be an option (even for backward compatibility). Perhaps Nuls should always be skipped, i.e. skipNul=TRUE always and skipNul=FALSE isn't allowed. |
Can copy what |
jimhester
added a commit
to jimhester/readr
that referenced
this issue
Jul 8, 2016
It looks like the signature of the Token constructor changed, but the calls in TokenizerLine were not properly updated for the change. It wasn't causing a compilation error because the hasNull boolean was being implicitly coerced to an integer, and the 0 was being coerced to a boolean, (very bad!). Fixes tidyverse#338
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Unlike
readLines()
, readr::read_lines() doesn't have askipNul=TRUE
option. Hence it either chokes on null characters, or strings get truncated at the null character. Could askipNul=TRUE
option be implemented?The text was updated successfully, but these errors were encountered: