constructive
constructive copied to clipboard
duplicate names in data frames and tibbles
constructive::construct(data.frame(a=1, a =2, check.names = FALSE))
#> {constructive} couldn't create code that reproduces perfectly the input
#> ℹ Call `construct_issues()` to inspect the last issues
#> data.frame(a = 1, a = 2)
constructive::construct(tibble::tibble(a=1, a= 2, .name_repair = "none"))
#> ! The code built by {constructive} could not be evaluated.
#> ! Due to error: Column name `a` must not be duplicated.
#> tibble::tibble(a = 1, a = 2)
data table works fine
constructive::construct(data.table::data.table(a=1, a=2))
#> data.table::data.table(a = 1, a = 2)