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 upadd_duration_to_date ungraceful error when durations first element is NA #483
Comments
* Fix code that had wrong test for date in ops-addition.r * Added tests to test-ops-additions.R
* Fix code that had wrong test for date in ops-addition.r * Added tests to test-ops-additions.R
* Update NEWS.md
* Fix code that had wrong test for date in ops-addition.r * Added tests to test-ops-additions.R
* Fix code that had wrong test for date in ops-addition.r * Added tests to test-ops-additions.R * Update NEWS.md
add_duration_to_dateyields 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: