cynkra / constructive

Display Idiomatic Code to Construct Most R Objects
https://cynkra.github.io/constructive
Other
132 stars 6 forks source link

opts_tbl_df("tribble") not working on dates #480

Closed moodymudskipper closed 2 months ago

moodymudskipper commented 2 months ago

It used to work but now that we use a sapply override that unclasses it doesn't anymore :

constructive::construct(tibble::tibble(a=Sys.Date()), opts_tbl_df("tribble"))
#> {constructive} couldn't create code that reproduces perfectly the input
#> ℹ Call `construct_issues()` to inspect the last issues
#> tibble::tribble(
#>   ~a,
#>   19983,
#> )

Created on 2024-09-17 with reprex v2.1.0