I've just run into a sas7bdat file with duplicate column names. haven::read_sas() can't import this file because tibble::tibble() doesn't allow duplicate column names, but I don't think haven exposes a way for the user to set .name_repair as requested in the error message.
(Separately, I've looked in tibble for a possible global option for setting the name repair behavior, but I don't think there is one.)
I suspect this issue extends to the other haven::read_* functions as well.
#>  '2.1.0'ex<-data.frame(
colnames(ex) <- c("id", "id")
ex#> id id#> 1 a A#> 2 b B#> 3 c Cex_sas7bdat<-fs::path_temp("ex", ext="sas7bdat")
#> Error in df_parse_sas_file(spec_data, spec_cat, encoding = encoding, catalog_encoding = catalog_encoding, : #> Evaluation error: Column name `id` must not be duplicated.#> Use .name_repair to specify repair..