markfairbanks / tidytable

Tidy interface to 'data.table'
https://markfairbanks.github.io/tidytable/
Other
450 stars 32 forks source link

Handle empty tibble for tidytable::unnest. #530

Closed roboton closed 2 years ago

roboton commented 2 years ago

Handling of empty tibble inconsistent with tidyr::unnest

> tidytable::unnest.(tibble::tibble(foo = list()), foo)
Error in .l[[1]] : subscript out of bounds
> tidyr::unnest(tibble::tibble(foo = list()), foo)
# A tibble: 0 × 1
# … with 1 variable: foo <???>