Skip to content

unpack() incorrectly unpacks non-df-cols if they are size 0 #1191

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

Closed
DavisVaughan opened this issue Nov 3, 2021 · 0 comments · Fixed by #1192
Closed

unpack() incorrectly unpacks non-df-cols if they are size 0 #1191

DavisVaughan opened this issue Nov 3, 2021 · 0 comments · Fixed by #1192
Labels
bug an unexpected problem or unintended behavior nesting 🐦 nesting, chopping, and packing

Comments

@DavisVaughan
Copy link
Member

tidyr::unpack(tibble::tibble(x = integer()), x)
#> # A tibble: 0 × 0

This should error in the current implementation, but really it should silently skip x (i.e. #1153)

@DavisVaughan DavisVaughan added bug an unexpected problem or unintended behavior nesting 🐦 nesting, chopping, and packing labels Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior nesting 🐦 nesting, chopping, and packing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant