Leap years in lubridate?

I have a bunch of scripts that run economic data analyses. Today (Feb 29, 2024), it ran into a problem

> today() + years(1)
[1] NA

Is that a known bug in lubridate? It should really output 2025-03-01.

R version 4.3.2
Lubridate version 1.9.3

lubridate gives you the %m+% operator as well as add_with_rollback functions for these sorts of manipulations.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.