Skip to content

Confusing error message #805

@jennybc

Description

@jennybc

If you forget to specify the col which unnest_wider() should act on, it complains that x is missing. Feels like that should be col. It's not entirely clear to me if this is a tidyr or tidyselect problem

library(tidyverse)

df <- tibble(
  z = list(list(letter = "a"), list(letter = "b"))
)

df %>% 
  unnest_wider(z)
#> # A tibble: 2 x 1
#>   letter
#>   <chr> 
#> 1 a     
#> 2 b

df %>% 
  unnest_wider()
#> Error: argument "x" is missing, with no default

Created on 2019-11-19 by the reprex package (v0.3.0.9001)

cc @lionel-

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions