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

read_csv adds extra rows if headers contain quoted newlines #784

Closed
matthewarbo opened this issue Jan 27, 2018 · 2 comments
Closed

read_csv adds extra rows if headers contain quoted newlines #784

matthewarbo opened this issue Jan 27, 2018 · 2 comments
Labels
bug

Comments

@matthewarbo
Copy link

@matthewarbo matthewarbo commented Jan 27, 2018

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
@jimhester jimhester added the bug label May 4, 2018
@jimhester jimhester closed this in dc94450 Nov 14, 2018
@jimhester
Copy link
Member

@jimhester jimhester commented Nov 14, 2018

Thanks, should now be fixed.

@lock
Copy link

@lock lock bot commented May 13, 2019

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/

@lock lock bot locked and limited conversation to collaborators May 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants