Skip to content

\r newlines are squashed in a single-column file #2542

Description

@st-pasha
> fread("A\r1\r\r\r2\r")
   A
1: 1
2: 2
> fread("A\n1\n\n\n2\n")
    A
1:  1
2: NA
3: NA
4:  2

Both examples should produce identical results (4-row DT), however in the first case all \rs are squashed and as a result NA values in the file disappear.

Activity

  1. added this to the milestone on Dec 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions