-
Notifications
You must be signed in to change notification settings - Fork 207
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
add_duration_to_date ungraceful error when durations first element is NA #483
Comments
ctbrown
added a commit
to ctbrown/lubridate
that referenced
this issue
Oct 19, 2016
* Fix code that had wrong test for date in ops-addition.r * Added tests to test-ops-additions.R
ctbrown
added a commit
to ctbrown/lubridate
that referenced
this issue
Oct 24, 2016
* Fix code that had wrong test for date in ops-addition.r * Added tests to test-ops-additions.R
ctbrown
added a commit
to ctbrown/lubridate
that referenced
this issue
Oct 24, 2016
* Update NEWS.md
ctbrown
added a commit
to ctbrown/lubridate
that referenced
this issue
Oct 24, 2016
ctbrown
added a commit
to ctbrown/lubridate
that referenced
this issue
Oct 24, 2016
* Fix code that had wrong test for date in ops-addition.r * Added tests to test-ops-additions.R
This was referenced Oct 24, 2016
Closed
ctbrown
added a commit
to ctbrown/lubridate
that referenced
this issue
Nov 1, 2016
* Fix code that had wrong test for date in ops-addition.r * Added tests to test-ops-additions.R * Update NEWS.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
add_duration_to_date
yields and ungraceful error when duration has leadingNA
. For example:lubridate:::add_duration_to_date( c(1,NA,2), Sys.Date() ) # OKAY
lubridate:::add_duration_to_date( c(NA,1,2), Sys.Date() ) # ERROR
lubridate:::add_duration_to_date( c(NA,NA), Sys.Date() ) # ERROR
The error given is:
The text was updated successfully, but these errors were encountered: