Skip to content

read_csv adds extra rows if headers contain quoted newlines #784

Closed

Description

@thewarbo

If a header in a csv contains quoted newlines, extra rows appear which contain part of the headers:

test1 <- "\"Header\nLine Two\"\nValue"
cat(test1)
#> "Header
#> Line Two"
#> Value
readr::read_csv(test1)
#> # A tibble: 2 x 1
#>   `Header\nLine Two`
#>   <chr>             
#> 1 "Line Two\""      
#> 2 Value

Activity

  1. added
    bugan unexpected problem or unintended behavior
    on May 4, 2018
  2. jimhester commented on Nov 14, 2018

    @jimhester
    Collaborator

    Thanks, should now be fixed.

  3. lock commented on May 13, 2019

    @lock

    This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/

  4. locked and limited conversation to collaborators on May 13, 2019
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

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions