Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(epicontacts)
  > 
  > test_check("epicontacts")
  1. Error: Various subsetting using [ (@test_handling.R#4) ----------------------
  undefined columns selected
  1: make_epicontacts(ebola_sim$linelist, ebola_sim$contacts, id = "case.id", to = "case.id", 
         from = "infector", directed = TRUE) at testthat/test_handling.R:4
  2: linelist[, id]
  3: `[.data.frame`(linelist, , id)
  4: stop("undefined columns selected")
  
  2. Error: Errors / warnings happen when they should (@test_handling.R#55) ------
  undefined columns selected
  1: make_epicontacts(ebola_sim$linelist, ebola_sim$contacts, id = "case.id", to = "case.id", 
         from = "infector", directed = FALSE) at testthat/test_handling.R:55
  2: linelist[, id]
  3: `[.data.frame`(linelist, , id)
  4: stop("undefined columns selected")
  
  3. Error: Reordering of columns works (@test_make_epicontacts.R#84) ------------
  undefined columns selected
  1: make_epicontacts(linelist, contacts, id = "case.id", to = "case.id", from = "infector") at testthat/test_make_epicontacts.R:84
  2: linelist[, id]
  3: `[.data.frame`(linelist, , id)
  4: stop("undefined columns selected")
  
  4. Error: Thin ouputs are correct (@test_thin.R#4) -----------------------------
  undefined columns selected
  1: make_epicontacts(ebola_sim$linelist, ebola_sim$contacts, id = "case.id", to = "case.id", 
         from = "infector", directed = TRUE) at testthat/test_thin.R:4
  2: linelist[, id]
  3: `[.data.frame`(linelist, , id)
  4: stop("undefined columns selected")
  
  testthat results ================================================================
  OK: 8 SKIPPED: 34 FAILED: 4
  1. Error: Various subsetting using [ (@test_handling.R#4) 
  2. Error: Errors / warnings happen when they should (@test_handling.R#55) 
  3. Error: Reordering of columns works (@test_make_epicontacts.R#84) 
  4. Error: Thin ouputs are correct (@test_thin.R#4) 
  
  Error: testthat unit tests failed
  Execution halted