You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow read_lines to gracefully skip null values #338
Unlike readLines(), readr::read_lines() doesn't have a skipNul=TRUE option. Hence it either chokes on null characters, or strings get truncated at the null character. Could a skipNul=TRUE option be implemented?
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.
Activity
hadley commentedon Jun 2, 2016
Is there some reason that even needs to be an option? Why shouldn't it always do so?
[-]skipNul=TRUE option for readr::read_lines()[/-][+]Allow read_lines to gracefully skip null values[/+]nathanielng commentedon Jun 2, 2016
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.
hadley commentedon Jul 6, 2016
Can copy what
CollectorCharacter::setValue()does