Open dsweber2 opened 4 months ago
This sounds great. I tried doing something like this a while ago in a general way with vctrs::vec_cast()
, but unfortunately, it has some unfortunate date <-> datetime conversions allowed (despite it saying there should be an error if there is not a 1-to-1 mapping of the values and actually enforcing this with int <-> double). We should either
vec_cast
that disables unwanted date<->datetime conversions.
Unsure if worth the effort, but
was not immediately clear to me that the solution was
as_Date("2021-06-01")
. We may want to add an automatic conversion to the same type asepi_archive$DT$Version
.