Skip to content

Ignore blank lines #657

@lang-benjamin

Description

@lang-benjamin

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?

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