Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upBizarre day parsing issue #307
Comments
|
I have replicated this on a separate machine. I have also replicated it again using |
|
Looks like it's your "irregular guesser" in Oh well, space-time trade-off and all, I guess. No way to fix this without impacting performance; someone was bound to hit this in the wild eventually. |
|
You were very unfortunate with your very sparce date vector. Lubridate has a training engine which is used to automatically recognize the formats. The training is done on a small subset of the original vector which is generated based on first 501 primes. See the internal |
|
No, that's alright, I have the same issues in my packages. Obviously there is no mathematical solution without inspecting the full vector that won't run into edge cases. |
|
You can use
At least partially, training should also be removed from |
|
Ok. Closing in favor of #308. |
|
Thanks! |
I have a very spooky dataset. It fails to parse in full on this exact set in this exact order, but parses fine in every subset / subsample I have tried.
First, notice
However, every other variation of samples I have tried parses fine...
Note that shuffling the vector or reversing it is sufficient to get
ymdto parse the vector correctly.I understand if you don't want to look into / fix this, but it did cause a production issue. Baffling.