Running ‘testthat.R’ [209s/290s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > #library(testthat)
  > library(diyar)
  > #testthat::test_dir("tests/testthat")
  > testthat::test_check("diyar")
  Episode or recurrence window 1.
  10 record(s); 3 grouped to episodes and 7 left to group.
  Episode or recurrence window 2.
  7 record(s); 3 grouped to episodes and 4 left to group.
  Episode or recurrence window 3.
  4 record(s); 3 grouped to episodes and 1 left to group.
  Episode or recurrence window 4.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 1 record(s) with a unique ID. 
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode grouping complete: 0 record(s) with a unique ID. 
  5 record(s); 5 skipped
  Episode grouping complete: 5 record(s) with a unique ID. 
  Episode grouping complete: 0 record(s) with a unique ID. 
  4 record(s); 4 skipped
  Episode grouping complete: 4 record(s) with a unique ID. 
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode grouping complete: 1 record(s) with a unique ID. 
  Episode grouping complete: 1 record(s) with a unique ID. 
  Episode grouping complete: 11 record(s) with a unique ID. 
  ── 1. Failure: testing; episode grouping by the hour (@test-episode_group.R#318)
  test_8a$epid_interval not equal to `e_int`.
  Attributes: < Component "start": 'current' is not a POSIXt >
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode grouping complete: 2 record(s) with a unique ID. 
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode grouping complete: 1 record(s) with a unique ID. 
  5 record(s); 5 skipped
  Episode grouping complete: 5 record(s) with a unique ID. 
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode grouping complete: 1 record(s) with a unique ID. 
  Episode or recurrence window 1.
  9 record(s); 7 grouped to episodes and 2 left to group.
  Episode or recurrence window 2.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  9 record(s); 9 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  9 record(s); 9 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 11 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 11 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 3 grouped to episodes and 8 left to group.
  Episode or recurrence window 2.
  8 record(s); 3 grouped to episodes and 5 left to group.
  Episode or recurrence window 3.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 4.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 3 grouped to episodes and 8 left to group.
  Episode or recurrence window 2.
  8 record(s); 3 grouped to episodes and 5 left to group.
  Episode or recurrence window 3.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 4.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 3 grouped to episodes and 8 left to group.
  Episode or recurrence window 2.
  8 record(s); 3 grouped to episodes and 5 left to group.
  Episode or recurrence window 3.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 4.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 3 grouped to episodes and 8 left to group.
  Episode or recurrence window 2.
  8 record(s); 3 grouped to episodes and 5 left to group.
  Episode or recurrence window 3.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 4.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 3 grouped to episodes and 8 left to group.
  Episode or recurrence window 2.
  8 record(s); 3 grouped to episodes and 5 left to group.
  Episode or recurrence window 3.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 4.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 6 grouped to episodes and 5 left to group.
  Episode or recurrence window 2.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 3.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 4.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 4 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 6 grouped to episodes and 5 left to group.
  Episode or recurrence window 2.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 3.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 4.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 4 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 3 grouped to episodes and 8 left to group.
  Episode or recurrence window 2.
  8 record(s); 3 grouped to episodes and 5 left to group.
  Episode or recurrence window 3.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 4.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 5.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 2 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 3 grouped to episodes and 8 left to group.
  Episode or recurrence window 2.
  8 record(s); 3 grouped to episodes and 5 left to group.
  Episode or recurrence window 3.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 4.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 5.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 2 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 2 grouped to episodes and 9 left to group.
  Episode or recurrence window 2.
  9 record(s); 2 grouped to episodes and 7 left to group.
  Episode or recurrence window 3.
  7 record(s); 2 grouped to episodes and 5 left to group.
  Episode or recurrence window 4.
  5 record(s); 2 grouped to episodes and 3 left to group.
  Episode or recurrence window 5.
  3 record(s); 3 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 2 grouped to episodes and 9 left to group.
  Episode or recurrence window 2.
  9 record(s); 2 grouped to episodes and 7 left to group.
  Episode or recurrence window 3.
  7 record(s); 2 grouped to episodes and 5 left to group.
  Episode or recurrence window 4.
  5 record(s); 2 grouped to episodes and 3 left to group.
  Episode or recurrence window 5.
  3 record(s); 3 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 2 grouped to episodes and 9 left to group.
  Episode or recurrence window 2.
  9 record(s); 2 grouped to episodes and 7 left to group.
  Episode or recurrence window 3.
  7 record(s); 2 grouped to episodes and 5 left to group.
  Episode or recurrence window 4.
  5 record(s); 2 grouped to episodes and 3 left to group.
  Episode or recurrence window 5.
  3 record(s); 3 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 2 grouped to episodes and 9 left to group.
  Episode or recurrence window 2.
  9 record(s); 2 grouped to episodes and 7 left to group.
  Episode or recurrence window 3.
  7 record(s); 2 grouped to episodes and 5 left to group.
  Episode or recurrence window 4.
  5 record(s); 2 grouped to episodes and 3 left to group.
  Episode or recurrence window 5.
  3 record(s); 3 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 2 grouped to episodes and 9 left to group.
  Episode or recurrence window 2.
  9 record(s); 2 grouped to episodes and 7 left to group.
  Episode or recurrence window 3.
  7 record(s); 2 grouped to episodes and 5 left to group.
  Episode or recurrence window 4.
  5 record(s); 2 grouped to episodes and 3 left to group.
  Episode or recurrence window 5.
  3 record(s); 3 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 4 grouped to episodes and 7 left to group.
  Episode or recurrence window 2.
  7 record(s); 3 grouped to episodes and 4 left to group.
  Episode or recurrence window 3.
  4 record(s); 2 grouped to episodes and 2 left to group.
  Episode or recurrence window 4.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 5.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 2 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 4 grouped to episodes and 7 left to group.
  Episode or recurrence window 2.
  7 record(s); 3 grouped to episodes and 4 left to group.
  Episode or recurrence window 3.
  4 record(s); 2 grouped to episodes and 2 left to group.
  Episode or recurrence window 4.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 5.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 2 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 2 grouped to episodes and 9 left to group.
  Episode or recurrence window 2.
  9 record(s); 2 grouped to episodes and 7 left to group.
  Episode or recurrence window 3.
  7 record(s); 1 grouped to episodes and 6 left to group.
  Episode or recurrence window 4.
  6 record(s); 1 grouped to episodes and 5 left to group.
  Episode or recurrence window 5.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 6.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 2 grouped to episodes and 9 left to group.
  Episode or recurrence window 2.
  9 record(s); 2 grouped to episodes and 7 left to group.
  Episode or recurrence window 3.
  7 record(s); 1 grouped to episodes and 6 left to group.
  Episode or recurrence window 4.
  6 record(s); 1 grouped to episodes and 5 left to group.
  Episode or recurrence window 5.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 6.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 2 grouped to episodes and 9 left to group.
  Episode or recurrence window 2.
  9 record(s); 2 grouped to episodes and 7 left to group.
  Episode or recurrence window 3.
  7 record(s); 1 grouped to episodes and 6 left to group.
  Episode or recurrence window 4.
  6 record(s); 1 grouped to episodes and 5 left to group.
  Episode or recurrence window 5.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 6.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 3 grouped to episodes and 8 left to group.
  Episode or recurrence window 2.
  8 record(s); 3 grouped to episodes and 5 left to group.
  Episode or recurrence window 3.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 4.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 4 record(s) with a unique ID. 
  Episode or recurrence window 1.
  8 record(s); 3 grouped to episodes and 5 left to group.
  Episode or recurrence window 2.
  5 record(s); 1 grouped to episodes and 4 left to group.
  Episode or recurrence window 3.
  4 record(s); 1 grouped to episodes and 3 left to group.
  Episode or recurrence window 4.
  3 record(s); 3 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 2 record(s) with a unique ID. 
  [1] "epid(0)"
  Episode or recurrence window 1.
  5 record(s); 1 grouped to episodes and 4 left to group.
  Episode or recurrence window 2.
  4 record(s); 1 grouped to episodes and 3 left to group.
  Episode or recurrence window 3.
  3 record(s); 3 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 1 grouped to episodes and 4 left to group.
  Episode or recurrence window 2.
  4 record(s); 2 grouped to episodes and 2 left to group.
  Episode or recurrence window 3.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  6 record(s); 1 grouped to episodes and 5 left to group.
  Episode or recurrence window 2.
  5 record(s); 2 grouped to episodes and 3 left to group.
  Episode or recurrence window 3.
  3 record(s); 3 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  6 record(s); 1 grouped to episodes and 5 left to group.
  Episode or recurrence window 2.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 3.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  6 record(s); 1 grouped to episodes and 5 left to group.
  Episode or recurrence window 2.
  5 record(s); 2 grouped to episodes and 3 left to group.
  Episode or recurrence window 3.
  3 record(s); 3 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  6 record(s); 2 grouped to episodes and 4 left to group.
  Episode or recurrence window 2.
  4 record(s); 4 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  4 record(s); 2 grouped to episodes and 2 left to group.
  Episode or recurrence window 2.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  4 record(s); 2 grouped to episodes and 2 left to group.
  Episode or recurrence window 2.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 3.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 1 record(s) with a unique ID. 
  Episode or recurrence window 1.
  6 record(s); 3 grouped to episodes and 3 left to group.
  Episode or recurrence window 2.
  3 record(s); 3 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  6 record(s); 3 grouped to episodes and 3 left to group.
  Episode or recurrence window 2.
  3 record(s); 2 grouped to episodes and 1 left to group.
  Episode or recurrence window 3.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 1 record(s) with a unique ID. 
  Episode or recurrence window 1.
  6 record(s); 3 grouped to episodes and 3 left to group.
  Episode or recurrence window 2.
  3 record(s); 1 grouped to episodes and 2 left to group.
  Episode or recurrence window 3.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 1 grouped to episodes and 4 left to group.
  Episode or recurrence window 2.
  4 record(s); 1 grouped to episodes and 3 left to group.
  Episode or recurrence window 3.
  3 record(s); 3 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 1 grouped to episodes and 4 left to group.
  Episode or recurrence window 2.
  4 record(s); 1 grouped to episodes and 3 left to group.
  Episode or recurrence window 3.
  3 record(s); 2 grouped to episodes and 1 left to group.
  Episode or recurrence window 4.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode grouping complete: 5 record(s) with a unique ID. 
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 3 grouped to episodes, 1 skipped and 6 left to group.
  Episode or recurrence window 2.
  6 record(s); 3 grouped to episodes, 1 skipped and 2 left to group.
  Episode or recurrence window 3.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 4.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 4 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 3 grouped to episodes, 1 skipped and 6 left to group.
  Episode or recurrence window 2.
  6 record(s); 3 grouped to episodes, 1 skipped and 2 left to group.
  Episode or recurrence window 3.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 4.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 4 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 4 grouped to episodes and 6 left to group.
  Episode or recurrence window 2.
  6 record(s); 4 grouped to episodes and 2 left to group.
  Episode or recurrence window 3.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 4 grouped to episodes and 6 left to group.
  Episode or recurrence window 2.
  6 record(s); 4 grouped to episodes and 2 left to group.
  Episode or recurrence window 3.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 1 grouped to episodes and 9 left to group.
  Episode or recurrence window 2.
  9 record(s); 1 grouped to episodes and 8 left to group.
  Episode or recurrence window 3.
  8 record(s); 1 grouped to episodes and 7 left to group.
  Episode or recurrence window 4.
  7 record(s); 1 grouped to episodes and 6 left to group.
  Episode or recurrence window 5.
  6 record(s); 1 grouped to episodes and 5 left to group.
  Episode or recurrence window 6.
  5 record(s); 1 grouped to episodes and 4 left to group.
  Episode or recurrence window 7.
  4 record(s); 1 grouped to episodes and 3 left to group.
  Episode or recurrence window 8.
  3 record(s); 1 grouped to episodes and 2 left to group.
  Episode or recurrence window 9.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 10.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 10 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 4 grouped to episodes and 6 left to group.
  Episode or recurrence window 2.
  6 record(s); 4 grouped to episodes and 2 left to group.
  Episode or recurrence window 3.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 4 grouped to episodes and 6 left to group.
  Episode or recurrence window 2.
  6 record(s); 1 grouped to episodes and 5 left to group.
  Episode or recurrence window 3.
  5 record(s); 1 grouped to episodes and 4 left to group.
  Episode or recurrence window 4.
  4 record(s); 1 grouped to episodes and 3 left to group.
  Episode or recurrence window 5.
  3 record(s); 1 grouped to episodes and 2 left to group.
  Episode or recurrence window 6.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 7.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 6 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 5 grouped to episodes, 2 skipped and 3 left to group.
  Episode or recurrence window 2.
  3 record(s); 1 grouped to episodes and 2 left to group.
  Episode or recurrence window 3.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 4.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 5 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 5 grouped to episodes, 2 skipped and 3 left to group.
  Episode or recurrence window 2.
  3 record(s); 1 grouped to episodes and 2 left to group.
  Episode or recurrence window 3.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 4.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 5 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 3 grouped to episodes, 1 skipped and 6 left to group.
  Episode or recurrence window 2.
  6 record(s); 3 grouped to episodes, 1 skipped and 2 left to group.
  Episode or recurrence window 3.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 4.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 4 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 3 grouped to episodes, 1 skipped and 6 left to group.
  Episode or recurrence window 2.
  6 record(s); 3 grouped to episodes, 1 skipped and 2 left to group.
  Episode or recurrence window 3.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 4.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 4 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 2.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 4 grouped to episodes and 1 left to group.
  Episode or recurrence window 2.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 1 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 2.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 4 grouped to episodes and 1 left to group.
  Episode or recurrence window 2.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 1 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 2.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 2.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 2 grouped to episodes, 3 skipped and 0 left to group.
  
  Episode grouping complete: 3 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 1 grouped to episodes and 4 left to group.
  Episode or recurrence window 2.
  4 record(s); 1 grouped to episodes and 3 left to group.
  Episode or recurrence window 3.
  3 record(s); 1 grouped to episodes and 2 left to group.
  Episode or recurrence window 4.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 5.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 3 record(s) with a unique ID. 
  Episode or recurrence window 1.
  7 record(s); 1 grouped to episodes, 1 skipped and 5 left to group.
  Episode or recurrence window 2.
  5 record(s); 1 grouped to episodes and 4 left to group.
  Episode or recurrence window 3.
  4 record(s); 1 grouped to episodes, 1 skipped and 2 left to group.
  Episode or recurrence window 4.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 5.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 3 record(s) with a unique ID. 
  Episode or recurrence window 1.
  7 record(s); 1 grouped to episodes and 6 left to group.
  Episode or recurrence window 2.
  6 record(s); 1 grouped to episodes and 5 left to group.
  Episode or recurrence window 3.
  5 record(s); 1 grouped to episodes and 4 left to group.
  Episode or recurrence window 4.
  4 record(s); 1 grouped to episodes and 3 left to group.
  Episode or recurrence window 5.
  3 record(s); 1 grouped to episodes and 2 left to group.
  Episode or recurrence window 6.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 7.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 1 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 2.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 2.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 2 grouped to episodes, 1 skipped and 2 left to group.
  Episode or recurrence window 2.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 3.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 3 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 2 grouped to episodes, 1 skipped and 2 left to group.
  Episode or recurrence window 2.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 3.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 3 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 1 grouped to episodes, 1 skipped and 3 left to group.
  Episode or recurrence window 2.
  3 record(s); 2 grouped to episodes, 1 skipped and 0 left to group.
  
  Episode grouping complete: 2 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 1 grouped to episodes, 1 skipped and 3 left to group.
  Episode or recurrence window 2.
  3 record(s); 2 grouped to episodes, 1 skipped and 0 left to group.
  
  Episode grouping complete: 2 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 2 grouped to episodes and 3 left to group.
  Episode or recurrence window 2.
  3 record(s); 3 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 1 grouped to episodes, 1 skipped and 3 left to group.
  Episode or recurrence window 2.
  3 record(s); 3 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 1 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 2 grouped to episodes, 1 skipped and 2 left to group.
  Episode or recurrence window 2.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 3.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 3 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 2 grouped to episodes, 1 skipped and 2 left to group.
  Episode or recurrence window 2.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 3.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 3 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 1 grouped to episodes and 4 left to group.
  Episode or recurrence window 2.
  4 record(s); 1 grouped to episodes and 3 left to group.
  Episode or recurrence window 3.
  3 record(s); 1 grouped to episodes and 2 left to group.
  Episode or recurrence window 4.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 5.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 5 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 2 grouped to episodes, 1 skipped and 2 left to group.
  Episode or recurrence window 2.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 3.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 3 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 2 grouped to episodes, 1 skipped and 2 left to group.
  Episode or recurrence window 2.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 3.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 3 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 2.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 3.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 2 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 5 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 5 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  5 record(s); 3 grouped to episodes and 2 left to group.
  Episode or recurrence window 2.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 6 grouped to episodes and 4 left to group.
  Episode or recurrence window 2.
  4 record(s); 4 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 6 grouped to episodes and 4 left to group.
  Episode or recurrence window 2.
  4 record(s); 4 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 4 grouped to episodes, 2 skipped and 4 left to group.
  Episode or recurrence window 2.
  4 record(s); 2 grouped to episodes and 2 left to group.
  Episode or recurrence window 3.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 2 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 3 grouped to episodes, 3 skipped and 4 left to group.
  Episode or recurrence window 2.
  4 record(s); 1 grouped to episodes and 3 left to group.
  Episode or recurrence window 3.
  3 record(s); 1 grouped to episodes and 2 left to group.
  Episode or recurrence window 4.
  2 record(s); 1 grouped to episodes and 1 left to group.
  Episode or recurrence window 5.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 7 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 4 grouped to episodes, 2 skipped and 4 left to group.
  Episode or recurrence window 2.
  4 record(s); 2 grouped to episodes and 2 left to group.
  Episode or recurrence window 3.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 2 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 3 grouped to episodes, 2 skipped and 5 left to group.
  Episode or recurrence window 2.
  5 record(s); 3 grouped to episodes, 2 skipped and 0 left to group.
  
  Episode grouping complete: 4 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 2 grouped to episodes, 3 skipped and 5 left to group.
  Episode or recurrence window 2.
  5 record(s); 3 grouped to episodes, 2 skipped and 0 left to group.
  
  Episode grouping complete: 5 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 3 grouped to episodes, 2 skipped and 5 left to group.
  Episode or recurrence window 2.
  5 record(s); 3 grouped to episodes, 2 skipped and 0 left to group.
  
  Episode grouping complete: 4 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 5 grouped to episodes and 5 left to group.
  Episode or recurrence window 2.
  5 record(s); 5 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 3 grouped to episodes, 2 skipped and 5 left to group.
  Episode or recurrence window 2.
  5 record(s); 5 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 2 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 5 grouped to episodes, 1 skipped and 4 left to group.
  Episode or recurrence window 2.
  4 record(s); 3 grouped to episodes, 1 skipped and 0 left to group.
  
  Episode grouping complete: 2 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 4 grouped to episodes, 2 skipped and 4 left to group.
  Episode or recurrence window 2.
  4 record(s); 2 grouped to episodes, 2 skipped and 0 left to group.
  
  Episode grouping complete: 4 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 2 grouped to episodes and 8 left to group.
  Episode or recurrence window 2.
  8 record(s); 2 grouped to episodes and 6 left to group.
  Episode or recurrence window 3.
  6 record(s); 2 grouped to episodes and 4 left to group.
  Episode or recurrence window 4.
  4 record(s); 2 grouped to episodes and 2 left to group.
  Episode or recurrence window 5.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 4 grouped to episodes, 2 skipped and 4 left to group.
  Episode or recurrence window 2.
  4 record(s); 2 grouped to episodes and 2 left to group.
  Episode or recurrence window 3.
  2 record(s); 2 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 2 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 5 grouped to episodes and 5 left to group.
  Episode or recurrence window 2.
  5 record(s); 2 grouped to episodes and 3 left to group.
  Episode or recurrence window 3.
  3 record(s); 2 grouped to episodes and 1 left to group.
  Episode or recurrence window 4.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 1 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 5 grouped to episodes and 5 left to group.
  Episode or recurrence window 2.
  5 record(s); 2 grouped to episodes and 3 left to group.
  Episode or recurrence window 3.
  3 record(s); 2 grouped to episodes and 1 left to group.
  Episode or recurrence window 4.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 1 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 9 grouped to episodes and 1 left to group.
  Episode or recurrence window 2.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 1 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 9 grouped to episodes and 1 left to group.
  Episode or recurrence window 2.
  1 record(s); 1 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 1 record(s) with a unique ID. 
  Episode or recurrence window 1.
  10 record(s); 6 grouped to episodes and 4 left to group.
  Episode or recurrence window 2.
  4 record(s); 4 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  [1] "1 -> 10"
  [1] "10 <- 1"
  [1] "5 ?? NA"
  [1] "NA ?? NA"
  [1] "20 == 20"
  [1] "1 <- -8"
  [1] "20 <- 11"
  [1] "5 == 5"
  [1] "5 -> 10"
  [1] "20 <- 10"
  [1] "1 <- -8" "1 <- -8" "1 <- -8"
  [1] "20 <- 11" "20 <- 11" "20 <- 11"
  [1] "5 == 5" "5 == 5" "5 == 5"
  [1] "5 -> 10" "5 -> 10" "5 -> 10"
  [1] "20 <- 10" "20 <- 10" "20 <- 10"
  [1] "20 <- 10" "NA ?? NA"
  
  Group criteria 1 - `cri_1`
  5 records(s): 4 assigned to record groups and 1 left to group.
  Record grouping complete: 1 record(s) with a unique ID. 
  
  Group criteria 1 - `cri_1`
  5 records(s): 2 assigned to record groups and 3 left to group.
  Record grouping complete: 3 record(s) with a unique ID. 
  
  Group criteria 1 - `cri_1`
  5 records(s): 2 assigned to record groups and 3 left to group.
  Record grouping complete: 3 record(s) with a unique ID. 
  
  Group criteria 1 - `cri_1`
  7 records(s): 2 assigned to record groups and 5 left to group.
  Group criteria 2 - `cri_2`
  5 records(s): 4 assigned to record groups and 1 left to group.
  Record grouping complete: 1 record(s) with a unique ID. 
  
  Group criteria 1 - `cri_1`
  7 records(s): 0 assigned to record groups and 7 left to group.
  Group criteria 2 - `cri_2`
  7 records(s): 5 assigned to record groups and 2 left to group.
  Record grouping complete: 2 record(s) with a unique ID. 
  
  Group criteria 1 - `cri_1`
  7 records(s): 2 assigned to record groups and 5 left to group.
  Group criteria 2 - `cri_2`
  Matching criteria 2: iteration 2
  Matching criteria 2: iteration 3
  5 records(s): 4 assigned to record groups and 1 left to group.
  Record grouping complete: 1 record(s) with a unique ID. 
  
  Group criteria 1 - `cri_1`
  7 records(s): 2 assigned to record groups and 5 left to group.
  Group criteria 2 - `cri_2`
  Matching criteria 2: iteration 2
  Matching criteria 2: iteration 3
  Matching criteria 2: iteration 4
  Matching criteria 2: iteration 5
  5 records(s): 2 assigned to record groups and 3 left to group.
  Record grouping complete: 3 record(s) with a unique ID. 
  
  Group criteria 1 - `cri_1`
  7 records(s): 2 assigned to record groups and 5 left to group.
  Group criteria 2 - `cri_2`
  Matching criteria 2: iteration 2
  Matching criteria 2: iteration 3
  5 records(s): 4 assigned to record groups and 1 left to group.
  Record grouping complete: 1 record(s) with a unique ID. 
  
  Group criteria 1 - `cri_1`
  Matching criteria 1: iteration 2
  Matching criteria 1: iteration 3
  Matching criteria 1: iteration 4
  Matching criteria 1: iteration 5
  Matching criteria 1: iteration 6
  Matching criteria 1: iteration 7
  Matching criteria 1: iteration 8
  15 records(s): 13 assigned to record groups and 2 left to group.
  Record grouping complete: 2 record(s) with a unique ID. 
  
  Group criteria 1 - `dmvr_d1`
  Matching criteria 1: iteration 2
  Matching criteria 1: iteration 3
  Matching criteria 1: iteration 4
  Matching criteria 1: iteration 5
  Matching criteria 1: iteration 6
  Matching criteria 1: iteration 7
  Matching criteria 1: iteration 8
  Matching criteria 1: iteration 9
  Matching criteria 1: iteration 10
  Matching criteria 1: iteration 11
  Matching criteria 1: iteration 12
  Matching criteria 1: iteration 13
  Matching criteria 1: iteration 14
  Matching criteria 1: iteration 15
  15 records(s): 14 assigned to record groups and 1 left to group.
  Record grouping complete: 1 record(s) with a unique ID. 
  
  Group criteria 1 - `infection`
  11 records(s): 11 assigned to record groups and 0 left to group.
  Record grouping complete: 0 record(s) with a unique ID. 
   [1] "P.1 (CRI 01)" "P.2 (CRI 01)" "P.2 (CRI 01)" "P.2 (CRI 01)" "P.1 (CRI 01)"
   [6] "P.2 (CRI 01)" "P.1 (CRI 01)" "P.1 (CRI 01)" "P.9 (CRI 01)" "P.9 (CRI 01)"
  [11] "P.1 (CRI 01)"
  [1] "pid(0)"
  Episode or recurrence window 1.
  11 record(s); 6 grouped to episodes and 5 left to group.
  Episode or recurrence window 2.
  5 record(s); 5 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  Episode or recurrence window 1.
  11 record(s); 6 grouped to episodes and 5 left to group.
  Episode or recurrence window 2.
  5 record(s); 5 grouped to episodes and 0 left to group.
  
  Episode grouping complete: 0 record(s) with a unique ID. 
  
  Group criteria 1 - `infection`
  11 records(s): 11 assigned to record groups and 0 left to group.
  Record grouping complete: 0 record(s) with a unique ID. 
  
  Group criteria 1 - `infection`
  11 records(s): 11 assigned to record groups and 0 left to group.
  Record grouping complete: 0 record(s) with a unique ID. 
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 516 | SKIPPED: 0 | WARNINGS: 3 | FAILED: 1 ]
  1. Failure: testing; episode grouping by the hour (@test-episode_group.R#318) 
  
  Error: testthat unit tests failed
  Execution halted