-
Notifications
You must be signed in to change notification settings - Fork 0
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
Bug to bug compatibility with readr::type_convert()
, but is it correct?
#22
Comments
Hello! I might be interested in using this package as a backend for this project I'm working on: https://kylehusmann.com/interlacer/ For me, I would prefer feature parity with vroom instead of Or maybe you could offer the option to switch between feature parity with |
@khusmann Thank you very much for your interest. I must mention that I am still coordinating with the tidyverse team on releasing this to CRAN. So there is still quite a (long) way for this to be easily available for your package. As far as 1e/2e, I believe the most important difference (and for the code relevant to |
Ah, sorry I missed that! But yeah, that behavior would be perfect for my purposes.
Yup, I totally understand. My main reason for reaching out was to affirm what you're doing here -- I think you're meeting a key need with this! If there's any way I can help advocate to the tidyverse team, please let me know... |
Another "?b2b compatibility" issue tidyverse/readr#1536 ## This gives columns of "1" and 2, rather than 1 and 2
str(readr::type_convert(data.frame(a="1 ", b=" 2"), trim_ws = TRUE))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> a = col_character(),
#> b = col_double()
#> )
#> 'data.frame': 1 obs. of 2 variables:
#> $ a: chr "1"
#> $ b: num 2
# This gives columns "1 " and 2, rather than "1 " and " 2"
str(readr::type_convert(data.frame(a="1 ", b=" 2"), trim_ws = FALSE))
#>
#> ── Column specification ────────────────────────────────────────────────────────
#> cols(
#> a = col_character(),
#> b = col_double()
#> )
#> 'data.frame': 1 obs. of 2 variables:
#> $ a: chr "1 "
#> $ b: num 2
str(minty::type_convert(data.frame(a="1 ", b=" 2"), trim_ws = TRUE))
#> 'data.frame': 1 obs. of 2 variables:
#> $ a: chr "1"
#> $ b: num 2
str(minty::type_convert(data.frame(a="1 ", b=" 2"), trim_ws = FALSE))
#> 'data.frame': 1 obs. of 2 variables:
#> $ a: chr "1 "
#> $ b: num 2
## vroom
readr::read_csv(I("a,b\n1 , 2\n"), trim_ws = TRUE)
#> Rows: 1 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> dbl (2): a, b
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
#> # A tibble: 1 × 2
#> a b
#> <dbl> <dbl>
#> 1 1 2
readr::read_csv(I("a,b\n1 , 2\n"), trim_ws = FALSE)
#> Rows: 1 Columns: 2
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr (2): a, b
#>
#> ℹ Use `spec()` to retrieve the full column specification for this data.
#> ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
#> # A tibble: 1 × 2
#> a b
#> <chr> <chr>
#> 1 "1 " " 2" Created on 2024-05-04 with reprex v2.1.0 |
Collection of all of these bugs |
Ref #20 tidyverse/readr#1509
Created on 2024-03-19 with reprex v2.1.0
The text was updated successfully, but these errors were encountered: