Skip to content

unchop() doesn't enforce ptype for non-list columns #1211

@mgirlich

Description

@mgirlich
library(tidyr)
unchop(
  tibble::tibble(x = 1.5),
  x,
  ptype = list(x = integer())
)
#> # A tibble: 1 × 1
#>       x
#>   <dbl>
#> 1   1.5

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions