Running 'testthat.R' [7s/8s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(checkr)
  > library(dttr2)
  > 
  > test_check("dttr2")
  -- 1. Failure: add_hours.hms (@test-add.R#140)  --------------------------------
  dtt_add_hours(hms::as.hms(c("00:00:00", "00:00:00")), 2:3) not identical to hms::as.hms(c("02:00:00", "03:00:00")).
  Mean relative difference: 0.3333333
  
  -- 2. Failure: add_hours.hms (@test-add.R#146)  --------------------------------
  dtt_add_hours(c(hms::as.hms("00:00:00"), NA), 3L) not identical to c(hms::as.hms("03:00:00"), NA).
  Mean relative difference: 0.3333333
  
  -- 3. Failure: add_hours.hms (@test-add.R#149)  --------------------------------
  dtt_add_hours(c(hms::as.hms("00:00:00"), NA), -3L) not identical to c(hms::as.hms("21:00:00"), NA).
  Mean relative difference: 0.04761905
  
  -- 4. Failure: add_minutes.hms (@test-add.R#191)  ------------------------------
  dtt_add_minutes(c(hms::as.hms("00:00:00"), NA), -3L) not identical to c(hms::as.hms("23:57:00"), NA).
  Mean relative difference: 0.04175365
  
  -- 5. Failure: add_seconds.hms (@test-add.R#233)  ------------------------------
  dtt_add_seconds(c(hms::as.hms("00:00:00"), NA), -3L) not identical to c(hms::as.hms("23:59:57"), NA).
  Mean relative difference: 0.04166811
  
  -- 6. Failure: aggregate.POSIXct (@test-aggregate.R#53)  -----------------------
  dtt_aggregate(hms::as.hms(c("02:12:59", "03:12:59")), "hours") not identical to hms::as.hms(c("02:00:00", "03:00:00")).
  Mean relative difference: 0.3333333
  
  -- 7. Failure: complete.hms (@test-complete.R#84)  -----------------------------
  length(dtt_complete(hms::as.hms(c("23:59:59", "00:00:01")))) not identical to 86399.
  1/1 mismatches
  [1] 3599 - 86399 == -82800
  
  -- 8. Failure: complete.hms (@test-complete.R#86)  -----------------------------
  length(dtt_complete(hms::as.hms(c("23:59:59", "00:00:01")), units = "hours")) not identical to 24.
  1/1 mismatches
  [1] 1 - 24 == -23
  
  -- 9. Failure: date.hms (@test-date.R#55)  -------------------------------------
  dtt_date(hms::as.hms("23:59:59")) not identical to as.Date("1970-01-01").
  Mean relative difference: 1
  
  -- 10. Failure: floor.hms (@test-floor.R#47)  ----------------------------------
  dtt_floor(hms::as.hms(-1.99)) not identical to hms::as.hms("23:59:58").
  Mean relative difference: 0.04166763
  
  -- 11. Failure: floor.hms (@test-floor.R#50)  ----------------------------------
  dtt_floor(hms::as.hms("23:59:59")) not identical to hms::as.hms("23:59:59").
  Mean relative difference: 24.00667
  
  -- 12. Failure: floor.hms (@test-floor.R#51)  ----------------------------------
  dtt_floor(hms::as.hms("23:59:59"), "minutes") not identical to hms::as.hms("23:59:00").
  Mean relative difference: 24.40678
  
  -- 13. Failure: floor.hms (@test-floor.R#52)  ----------------------------------
  dtt_floor(hms::as.hms("23:59:59"), "hours") not identical to hms::as.hms("23:00:00").
  Mean absolute difference: 86400
  
  -- 14. Failure: floor.hms (@test-floor.R#53)  ----------------------------------
  dtt_floor(hms::as.hms(c("23:59:59", "01:02:03")), "hours") not identical to hms::as.hms(c("23:00:00", "01:00:00")).
  Mean absolute difference: 86400
  
  -- 15. Failure: floor.hms (@test-floor.R#55)  ----------------------------------
  dtt_floor(hms::as.hms(c("23:59:59", NA)), "hours") not identical to hms::as.hms(c("23:00:00", NA)).
  Mean absolute difference: 86400
  
  -- 16. Failure: dtt_hour.hms (@test-hour.R#29)  --------------------------------
  dtt_hour(hms::as.hms("20:30:32")) not identical to 20.
  1/1 mismatches
  [1] 21 - 20 == 1
  
  -- 17. Failure: dtt_hour.hms (@test-hour.R#32)  --------------------------------
  dtt_hour(hms::as.hms("24:00:00")) not identical to 0.
  1/1 mismatches
  [1] 1 - 0 == 1
  
  -- 18. Failure: dtt_hour<-.hms (@test-hour.R#84)  ------------------------------
  dtt_set_hour(x, 23L) not identical to hms::as.hms("23:13:14").
  Mean relative difference: 0.04306529
  
  -- 19. Failure: dtt_hour<-.hms (@test-hour.R#86)  ------------------------------
  `x` not identical to hms::as.hms("23:13:14").
  Mean relative difference: 0.04306529
  
  -- 20. Failure: seq.hms (@test-seq.R#127)  -------------------------------------
  dtt_seq(hms::as.hms("00:00:00"), length_out = 24L, units = "hours") not identical to hms::as.hms(...).
  Mean relative difference: 0.07692308
  
  -- 21. Failure: seq.hms (@test-seq.R#131)  -------------------------------------
  dtt_seq(hms::as.hms("01:00:00"), length_out = 24L, units = "hours") not identical to hms::as.hms(...).
  Mean relative difference: 0.07692308
  
  -- 22. Failure: seq.hms (@test-seq.R#156)  -------------------------------------
  length(dtt_seq(hms::as.hms("00:00:01"), hms::as.hms("23:59:59"))) not identical to 86399.
  1/1 mismatches
  [1] 3599 - 86399 == -82800
  
  -- 23. Failure: seq.hms (@test-seq.R#158)  -------------------------------------
  length(...) not identical to 86399.
  1/1 mismatches
  [1] 3599 - 86399 == -82800
  
  -- 24. Failure: seq.hms (@test-seq.R#160)  -------------------------------------
  dtt_seq(hms::as.hms("23:59:59"), hms::as.hms("00:00:01")) not identical to hms::as.hms(c("23:59:59", "00:00:00", "00:00:01")).
  Numeric: lengths (82803, 3) differ
  
  -- 25. Failure: subtract_hours.hms (@test-subtract.R#135)  ---------------------
  dtt_subtract_hours(hms::as.hms("00:00:00"), 2L) not identical to hms::as.hms("22:00:00").
  Mean relative difference: 0.04545455
  
  -- 26. Failure: subtract_hours.hms (@test-subtract.R#137)  ---------------------
  dtt_subtract_hours(hms::as.hms(c("00:00:00", "00:00:00")), 2L) not identical to hms::as.hms(c("22:00:00", "22:00:00")).
  Mean relative difference: 0.04545455
  
  -- 27. Failure: subtract_hours.hms (@test-subtract.R#140)  ---------------------
  dtt_subtract_hours(hms::as.hms(c("00:00:00", "00:00:00")), 2:3) not identical to hms::as.hms(c("22:00:00", "21:00:00")).
  Mean relative difference: 0.04651163
  
  -- 28. Failure: subtract_hours.hms (@test-subtract.R#143)  ---------------------
  dtt_subtract_hours(c(hms::as.hms("00:00:00"), NA), 2:3) not identical to c(hms::as.hms("22:00:00"), NA).
  Mean relative difference: 0.04545455
  
  -- 29. Failure: subtract_hours.hms (@test-subtract.R#146)  ---------------------
  dtt_subtract_hours(c(hms::as.hms("00:00:00"), NA), 3L) not identical to c(hms::as.hms("21:00:00"), NA).
  Mean relative difference: 0.04761905
  
  -- 30. Failure: subtract_hours.hms (@test-subtract.R#149)  ---------------------
  dtt_subtract_hours(c(hms::as.hms("00:00:00"), NA), -3L) not identical to c(hms::as.hms("03:00:00"), NA).
  Mean relative difference: 0.3333333
  
  -- 31. Failure: subtract_minutes.hms (@test-subtract.R#177)  -------------------
  dtt_subtract_minutes(hms::as.hms("00:00:00"), 2L) not identical to hms::as.hms("23:58:00").
  Mean relative difference: 0.04172462
  
  -- 32. Failure: subtract_minutes.hms (@test-subtract.R#179)  -------------------
  dtt_subtract_minutes(...) not identical to hms::as.hms(c("23:58:00", "23:58:00")).
  Mean relative difference: 0.04172462
  
  -- 33. Failure: subtract_minutes.hms (@test-subtract.R#182)  -------------------
  dtt_subtract_minutes(...) not identical to hms::as.hms(c("23:58:00", "23:57:00")).
  Mean relative difference: 0.04173913
  
  -- 34. Failure: subtract_minutes.hms (@test-subtract.R#185)  -------------------
  dtt_subtract_minutes(c(hms::as.hms("00:00:00"), NA), 2:3) not identical to c(hms::as.hms("23:58:00"), NA).
  Mean relative difference: 0.04172462
  
  -- 35. Failure: subtract_minutes.hms (@test-subtract.R#188)  -------------------
  dtt_subtract_minutes(c(hms::as.hms("00:00:00"), NA), 3L) not identical to c(hms::as.hms("23:57:00"), NA).
  Mean relative difference: 0.04175365
  
  -- 36. Failure: subtract_seconds.hms (@test-subtract.R#219)  -------------------
  dtt_subtract_seconds(hms::as.hms("00:00:00"), 2L) not identical to hms::as.hms("23:59:58").
  Mean relative difference: 0.04166763
  
  -- 37. Failure: subtract_seconds.hms (@test-subtract.R#221)  -------------------
  dtt_subtract_seconds(...) not identical to hms::as.hms(c("23:59:58", "23:59:58")).
  Mean relative difference: 0.04166763
  
  -- 38. Failure: subtract_seconds.hms (@test-subtract.R#224)  -------------------
  dtt_subtract_seconds(...) not identical to hms::as.hms(c("23:59:58", "23:59:57")).
  Mean relative difference: 0.04166787
  
  -- 39. Failure: subtract_seconds.hms (@test-subtract.R#227)  -------------------
  dtt_subtract_seconds(c(hms::as.hms("00:00:00"), NA), 2:3) not identical to c(hms::as.hms("23:59:58"), NA).
  Mean relative difference: 0.04166763
  
  -- 40. Failure: subtract_seconds.hms (@test-subtract.R#230)  -------------------
  dtt_subtract_seconds(c(hms::as.hms("00:00:00"), NA), 3L) not identical to c(hms::as.hms("23:59:57"), NA).
  Mean relative difference: 0.04166811
  
  -- 41. Failure: time.integer (@test-time.R#9)  ---------------------------------
  dtt_time(c(-2L, NA)) not identical to c(hms::as.hms("23:59:58"), NA_hms_).
  Mean relative difference: 0.04166763
  
  -- 42. Failure: time.double (@test-time.R#16)  ---------------------------------
  dtt_time(-1.999) not identical to hms::as.hms("23:59:58").
  Mean relative difference: 0.04166763
  
  -- 43. Failure: time.POSIXct (@test-time.R#49)  --------------------------------
  dtt_time(as.POSIXct("1970-01-03 23:59:59", tz = "Etc/GMT+8")) not identical to hms::as.hms("23:59:59").
  Mean relative difference: 0.04166715
  
  -- 44. Failure: time.POSIXct (@test-time.R#51)  --------------------------------
  dtt_time(...) not identical to c(hms::as.hms("23:59:59"), NA_hms_).
  Mean relative difference: 0.04166715
  
  -- 45. Failure: time.POSIXlt (@test-time.R#60)  --------------------------------
  dtt_time(as.POSIXlt("1970-01-03 23:59:59", tz = "Etc/GMT+8")) not identical to hms::as.hms("23:59:59").
  Mean relative difference: 0.04166715
  
  -- 46. Failure: time.POSIXlt (@test-time.R#62)  --------------------------------
  dtt_time(...) not identical to c(hms::as.hms("23:59:59"), NA_hms_).
  Mean relative difference: 0.04166715
  
  -- 47. Failure: wrap.hms (@test-wrap.R#7)  -------------------------------------
  dtt_wrap(hms::as.hms("23:59:59")) not identical to hms::as.hms("23:59:59").
  Mean relative difference: 24.00667
  
  -- 48. Failure: wrap.hms (@test-wrap.R#8)  -------------------------------------
  dtt_wrap(hms::as.hms("24:00:00")) not identical to hms::as.hms("00:00:00").
  Mean relative difference: 1
  
  -- 49. Failure: wrap.hms (@test-wrap.R#9)  -------------------------------------
  dtt_wrap(hms::as.hms(-2)) not identical to hms::as.hms("23:59:58").
  Mean relative difference: 0.04166763
  
  == testthat results  ===========================================================
  [ OK: 861 | SKIPPED: 1 | WARNINGS: 0 | FAILED: 49 ]
  1. Failure: add_hours.hms (@test-add.R#140) 
  2. Failure: add_hours.hms (@test-add.R#146) 
  3. Failure: add_hours.hms (@test-add.R#149) 
  4. Failure: add_minutes.hms (@test-add.R#191) 
  5. Failure: add_seconds.hms (@test-add.R#233) 
  6. Failure: aggregate.POSIXct (@test-aggregate.R#53) 
  7. Failure: complete.hms (@test-complete.R#84) 
  8. Failure: complete.hms (@test-complete.R#86) 
  9. Failure: date.hms (@test-date.R#55) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted