It seems that crossing() either does not respect the value of .name_repair or does not see this parameter:
vals <- c("v", "h")
tidyr::crossing(vals, vals, vals, vals, .name_repair = "unique")
#> Error: Column names `vals`, `vals`, `vals` must not be duplicated.
#> Use .name_repair to specify repair.
Created on 2019-11-05 by the reprex package (v0.3.0)
tibble() does not fail in this situation:
vals <- c("v", "h")
tidyr::tibble(vals, vals, vals, vals, .name_repair = "unique")
#> New names:
#> * vals -> vals...1
#> * vals -> vals...2
#> * vals -> vals...3
#> * vals -> vals...4
#> # A tibble: 2 x 4
#> vals...1 vals...2 vals...3 vals...4
#> <chr> <chr> <chr> <chr>
#> 1 v v v v
#> 2 h h h h
Created on 2019-11-05 by the reprex package (v0.3.0)
It seems that
crossing()either does not respect the value of.name_repairor does not see this parameter:Created on 2019-11-05 by the reprex package (v0.3.0)
tibble()does not fail in this situation:Created on 2019-11-05 by the reprex package (v0.3.0)