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

Ignore blank lines #657

Closed
langbe opened this Issue Apr 25, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@langbe

langbe commented Apr 25, 2017

This is the same issue as #321 but applied to read_table. That is

library(readr) # using v1.1.0
input <- "x y\n1 2\n\n"
read.table(text = input, header = TRUE)
#>   x y
#> 1 1 2

read_table(input)
#> # A tibble: 2 × 2
#>       x     y
#>   <int> <int>
#> 1     1     2
#> 2    NA    NA

read_table2(input)
#> Warning: 1 parsing failure.
#> row col  expected    actual         file
#>   2  -- 2 columns 1 columns literal data
#> 
#> # A tibble: 2 × 2
#>       x     y
#>   <int> <int>
#> 1     1     2
#> 2    NA    NA

Is/Was this behavior (still) intended for read_table?

@jimhester jimhester added the bug label Dec 7, 2017

@jimhester jimhester closed this in f5fb194 Dec 11, 2017

@jimhester

This comment has been minimized.

Member

jimhester commented Dec 11, 2017

Fixed by 6517708 as well.

@lock

This comment has been minimized.

lock bot commented Sep 25, 2018

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 Sep 25, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.