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

Ignore blank lines #657

Closed
lang-benjamin opened this issue Apr 25, 2017 · 2 comments
Closed

Ignore blank lines #657

lang-benjamin opened this issue Apr 25, 2017 · 2 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@lang-benjamin
Copy link

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 an unexpected problem or unintended behavior label Dec 7, 2017
@jimhester
Copy link
Collaborator

Fixed by 6517708 as well.

@lock
Copy link

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.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants