tidyverse / lubridate

Make working with dates in R just that little bit easier
https://lubridate.tidyverse.org
GNU General Public License v3.0
724 stars 207 forks source link

Parsing dates with `my` seems to have a limit size #1157

Open stephLH opened 6 months ago

stephLH commented 6 months ago

I'm using devel version of lubridate just to be sure my problem has not been solved lately.

I am parsing dates with my function. My vector has wrong formats at beginning, then one right format :

my(c(rep("201908", 98), "032022"))

It returns desired result with a full vector length of 99.

If I set a 100-length vector instead, my date parsing at postion 100 fails :

my(c(rep("201908", 99), "032022"))

This limit does not apply if the vector starts with one right format :

my(c("032022", rep("201908", 99)))