-
Notifications
You must be signed in to change notification settings - Fork 65
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
vec_c()
should probably cast xs
to a common type before handing off to df_c_fallback()
#1892
Comments
You can break it further with library(tibble)
library(data.table)
library(vctrs)
#>
#> Attaching package: 'vctrs'
#> The following object is masked from 'package:tibble':
#>
#> data_frame
xs <- list(
tibble(x = as.IDate('2012-01-01')),
tibble(y = 1)
)
list_unchop(xs, indices = list(1, 2:3))
#> Error in `list_unchop()`:
#> ! `c()` method returned a vector of unexpected size 2 instead of 3.
#> ℹ In file 'c.c' at line 414.
#> ℹ This is an internal error that was detected in the vctrs package.
#> Please report it at <https://github.com/r-lib/vctrs/issues> with a reprex (<https://tidyverse.org/help/>) and the full backtrace.
#> Backtrace:
#> ▆
#> 1. ├─vctrs::list_unchop(xs, indices = list(1, 2:3))
#> 2. └─rlang:::stop_internal_c_lib(...) at vctrs/R/slice-chop.R:164:3
#> 3. └─rlang::abort(message, call = call, .internal = TRUE, .frame = frame) Created on 2023-11-02 with reprex v2.0.2 |
I am fairly certain we purposefully do not call |
From tidyverse/tidyr#1507
Also ensure we fix it in
list_unchop()
too!See the
1970-01-02
?The text was updated successfully, but these errors were encountered: