New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pretty_dates crashes for intervals greater than one year #227

garrettgman opened this Issue Feb 4, 2014 · 0 comments


None yet
2 participants

garrettgman commented Feb 4, 2014

From David A.

pretty_dates fails to compute the intervals whenever it has to extend beyond intervals of 1 year. Consider the example:

pretty_dates(c(as.Date("1993-12-05"), as.Date("2007-12-01")), 14)
As expected, it returns "1993-01-01 UTC", "1994-01-01 UTC", etc.

Now change the third argument to 7 instead of 14.
pretty_dates(c(as.Date("1993-12-05"), as.Date("2007-12-01")), 7)
One would expect "1993-01-01 UTC", "1995-01-01 UTC", etc., but instead it crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment