Running ‘testthat.R’ [4s/30s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(naptime)
  > 
  > test_check("naptime")
  1. Error: character date handling: yyyy-mm-dd hh:mm:ss in past (@test-naptime.R#116) 
  unhandled input for naptime(): unhandled input for naptime(): could not find function "hours"
  
  1: expect_warning(neg_period_test <- system.time(naptime(as.character(lubridate::now() + 
         lubridate::seconds(-1))))[["elapsed"]]) at testthat/test-naptime.R:116
  2: capture_warnings(object)
  3: withCallingHandlers(code, warning = function(condition) {
         out$push(condition)
         invokeRestart("muffleWarning")
     })
  4: system.time(naptime(as.character(lubridate::now() + lubridate::seconds(-1))))
  5: naptime(as.character(lubridate::now() + lubridate::seconds(-1)))
  6: tryCatch(standardGeneric("naptime"), error = function(e) {
         nap_error("unhandled input for naptime(): ", as.character(e), permissive = permissive)
         nap_default()
     })
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  10: nap_error("unhandled input for naptime(): ", as.character(e), permissive = permissive)
  11: stop(..., call. = FALSE)
  
  2. Error: character date handling: yyyy-mm-dd hh:mm:ss in future (@test-naptime.R#126) 
  unhandled input for naptime(): unhandled input for naptime(): could not find function "mins"
  
  1: system.time(naptime(as.character(lubridate::now() + lubridate::seconds(5)))) at testthat/test-naptime.R:126
  2: naptime(as.character(lubridate::now() + lubridate::seconds(5)))
  3: tryCatch(standardGeneric("naptime"), error = function(e) {
         nap_error("unhandled input for naptime(): ", as.character(e), permissive = permissive)
         nap_default()
     })
  4: tryCatchList(expr, classes, parentenv, handlers)
  5: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  6: value[[3L]](cond)
  7: nap_error("unhandled input for naptime(): ", as.character(e), permissive = permissive)
  8: stop(..., call. = FALSE)
  
  testthat results ================================================================
  OK: 60 SKIPPED: 0 FAILED: 2
  1. Error: character date handling: yyyy-mm-dd hh:mm:ss in past (@test-naptime.R#116) 
  2. Error: character date handling: yyyy-mm-dd hh:mm:ss in future (@test-naptime.R#126) 
  
  Error: testthat unit tests failed
  Execution halted