Running ‘testthat.R’ [14s/16s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(constellation)
  > 
  > test_check("constellation")
  ── 1. Error: bundle produces expected values for test patient (@test-bundle.R#43
  'origin' must be supplied
  Backtrace:
    1. testthat::expect_equal(...)
    5. constellation::bundle(...)
    6. data.table::foverlaps(...)
    9. data.table:::`[.data.table`(y, , eval(call))
   10. [ base::eval(...) ] with 1 more call
   13. base::c.POSIXct(...)
   16. base::lapply(list(...), function(e) unclass(as.POSIXct(e)))
   17. base:::FUN(X[[i]], ...)
   19. base::as.POSIXct.numeric(e)
  
  ── 2. Error: bundle names assign properly (@test-bundle.R#130)  ────────────────
  'origin' must be supplied
  Backtrace:
    1. testthat::expect_equal(...)
    5. constellation::bundle(...)
    6. data.table::foverlaps(...)
    9. data.table:::`[.data.table`(y, , eval(call))
   10. [ base::eval(...) ] with 1 more call
   13. base::c.POSIXct(...)
   16. base::lapply(list(...), function(e) unclass(as.POSIXct(e)))
   17. base:::FUN(X[[i]], ...)
   19. base::as.POSIXct.numeric(e)
  
  ── 3. Error: event name assigns properly (@test-bundle.R#162)  ─────────────────
  'origin' must be supplied
  Backtrace:
    1. testthat::expect_equal(...)
    5. constellation::bundle(...)
    6. data.table::foverlaps(...)
    9. data.table:::`[.data.table`(y, , eval(call))
   10. [ base::eval(...) ] with 1 more call
   13. base::c.POSIXct(...)
   16. base::lapply(list(...), function(e) unclass(as.POSIXct(e)))
   17. base:::FUN(X[[i]], ...)
   19. base::as.POSIXct.numeric(e)
  
  ── 4. Error: window hours roll over (@test-bundle.R#173)  ──────────────────────
  'origin' must be supplied
  Backtrace:
    1. testthat::expect_equal(...)
    4. constellation::bundle(...)
    5. data.table::foverlaps(...)
    8. data.table:::`[.data.table`(y, , eval(call))
    9. [ base::eval(...) ] with 1 more call
   12. base::c.POSIXct(...)
   15. base::lapply(list(...), function(e) unclass(as.POSIXct(e)))
   16. base:::FUN(X[[i]], ...)
   18. base::as.POSIXct.numeric(e)
  
  ── 5. Error: default arguments function properly (@test-bundle.R#209)  ─────────
  'origin' must be supplied
  Backtrace:
    1. testthat::expect_equal(...)
    4. constellation::bundle(...)
    5. data.table::foverlaps(...)
    8. data.table:::`[.data.table`(y, , eval(call))
    9. [ base::eval(...) ] with 1 more call
   12. base::c.POSIXct(...)
   15. base::lapply(list(...), function(e) unclass(as.POSIXct(e)))
   16. base:::FUN(X[[i]], ...)
   18. base::as.POSIXct.numeric(e)
  
  ── 6. Error: value change produces expected values for test patient (@test-value
  'origin' must be supplied
  Backtrace:
    1. testthat::expect_equal(...)
    4. constellation::value_change(...)
    5. data.table::foverlaps(data, prior_data)
    8. data.table:::`[.data.table`(y, , eval(call))
    9. [ base::eval(...) ] with 1 more call
   12. base::c.POSIXct(...)
   15. base::lapply(list(...), function(e) unclass(as.POSIXct(e)))
   16. base:::FUN(X[[i]], ...)
   18. base::as.POSIXct.numeric(e)
  
  ── 7. Error: default arguments function properly (@test-value_change.R#54)  ────
  'origin' must be supplied
  Backtrace:
    1. testthat::expect_equal(...)
    4. constellation::value_change(...)
    5. data.table::foverlaps(data, prior_data)
    8. data.table:::`[.data.table`(y, , eval(call))
    9. [ base::eval(...) ] with 1 more call
   12. base::c.POSIXct(...)
   15. base::lapply(list(...), function(e) unclass(as.POSIXct(e)))
   16. base:::FUN(X[[i]], ...)
   18. base::as.POSIXct.numeric(e)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 94 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 7 ]
  1. Error: bundle produces expected values for test patient (@test-bundle.R#43) 
  2. Error: bundle names assign properly (@test-bundle.R#130) 
  3. Error: event name assigns properly (@test-bundle.R#162) 
  4. Error: window hours roll over (@test-bundle.R#173) 
  5. Error: default arguments function properly (@test-bundle.R#209) 
  6. Error: value change produces expected values for test patient (@test-value_change.R#25) 
  7. Error: default arguments function properly (@test-value_change.R#54) 
  
  Error: testthat unit tests failed
  Execution halted