tidyverse / vroom

Fast reading of delimited files
https://vroom.r-lib.org
Other
621 stars 60 forks source link

vroom fails to detect delimiter if data is quoted with double quote or only contains one column #486

Open hidekoji opened 1 year ago

hidekoji commented 1 year ago

This is related to https://github.com/tidyverse/readr/issues/1460 With vroom version 1.6.0, If data is quoted with double quotes, it fails to detect the delimiter even if I specify the quote parameter.

vroom::vroom('"Date","WWDC Page Access"
+ "2015-07-01",186
+ "2015-07-02",161', quote='"')
#> Error: Could not guess the delimiter.
#> 
#> Use `vroom(delim =)` to specify one explicitly.

Created on 2023-01-27 with reprex v2.0.2

Also, if it contains only one column, it cannot detect the delimiter too.

vroom::vroom("a
2022-01-01")
#> Error: Could not guess the delimiter.
#> 
#> Use `vroom(delim =)` to specify one explicitly.

Created on 2023-01-27 with reprex v2.0.2