You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the following example, the first escaped quote disappears in the first column. I expected to maybe get an error here because I've not set escape_backslash:
Even worse, the "A" in the first row now is a "B". 馃槦
path= tempfile()
writeLines(c(
"'\\'A\\'',T",
"'\\'B\\'',F"
), con=path)
vroom::vroom(path, col_names= c("x", "y"), col_types=list(vroom::col_factor(), vroom::col_factor()), quote="'")
# A tibble: 2 x 2xy<fct><fct>1"\\B\\'"T2"\\B\\'"F
The later also happens with escapse_backslash:
vroom::vroom(path, col_names= c("x", "y"), col_types=list(vroom::col_factor(), vroom::col_factor()), quote="'", escape_backslash=TRUE)
# A tibble: 2 x 2xy<fct><fct>1'B'F2'B'F
vroom::vroom("A,T\nB,F\n", col_names=FALSE, col_types=list("f", "f"), escape_backslash=TRUE)
#> # A tibble: 2 x 2#> X1 X2 #> <fct> <fct>#> 1 B F #> 2 B Fvroom::vroom("A,T\nB,F\n", col_names=FALSE, col_types=list("f", "f"), escape_backslash=FALSE)
#> # A tibble: 2 x 2#> X1 X2 #> <fct> <fct>#> 1 A T #> 2 B F
In the following example, the first escaped quote disappears in the first column. I expected to maybe get an error here because I've not set
escape_backslash
:Even worse, the "A" in the first row now is a "B". 馃槦
The later also happens with
escapse_backslash
:Another example without escapes:
The text was updated successfully, but these errors were encountered: