Skip to content

Type stability when a df-col has 0 columns but 1 row #1189

@DavisVaughan

Description

@DavisVaughan
library(tidyr)

# df-col with 1 row and 0 cols
df <- tibble(x = tibble(.rows = 1))

# should be 1 row and 0 cols
unpack(df, x)
#> # A tibble: 0 × 0

Created on 2021-11-03 by the reprex package (v2.0.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorgrids #️⃣expanding, nesting, crossing, ...

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions