Maybe at least one of your labels items is NULL -- that seems to cause that error:
suppressPackageStartupMessages(library(tidyverse))
tbl <- tribble(
~ ID, ~ Num, ~ Labels,
"X", 5, c("abc", "def"),
"Y", 3, NULL,
"Z", 10, c("jk", "elmeno-p")
)
tbl
#> # A tibble: 3 x 3
#> ID Num Labels
#> <chr> <dbl> <list>
#> 1 X 5 <chr [2]>
#> 2 Y 3 <NULL>
#> 3 Z 10 <chr [2]>
tbl %>% unnest()
#> Error: Each column must either be a list of vectors or a list of data frames [Labels]
Try this code:
map_chr(transactions$labels, typeof) %>% table()
That should let you know if you have any non-character items in that column.