Running 'testthat.R' [3s/4s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(twoxtwo)
  > 
  > test_check("twoxtwo")
  
  |         |           |OUTCOME      |OUTCOME     |
  |:--------|:----------|:------------|:-----------|
  |         |           |Survived=Yes |Survived=No |
  |EXPOSURE |Crew=TRUE  |212          |673         |
  |EXPOSURE |Crew=FALSE |499          |817         |
  
  
  Outcome: Survived
  Outcome + : Yes
  Outcome - : No
  
  Exposure: Crew
  Exposure + : TRUE
  Exposure - : FALSE
  
  Number of missing observations: 0
  
  Odds Ratio: 0.516 (0.426,0.624)
  Risk Ratio: 0.632 (0.551,0.724)
  Risk Difference: -0.14 (-0.178,-0.101)
  
  |         |           |OUTCOME      |OUTCOME     |
  |:--------|:----------|:------------|:-----------|
  |         |           |Survived=Yes |Survived=No |
  |EXPOSURE |Crew=TRUE  |212          |673         |
  |EXPOSURE |Crew=FALSE |499          |817         |
  
  
  Outcome: Survived
  Outcome + : Yes
  Outcome - : No
  
  Exposure: Crew
  Exposure + : TRUE
  Exposure - : FALSE
  
  Number of missing observations: 0
  
  Odds Ratio: 0.516 (0.426,0.624)
  Risk Ratio: 0.632 (0.551,0.724)
  Risk Difference: -0.14 (-0.178,-0.101)
  
  |         |           |OUTCOME      |OUTCOME     |
  |:--------|:----------|:------------|:-----------|
  |         |           |Survived=Yes |Survived=No |
  |EXPOSURE |Crew=TRUE  |212          |673         |
  |EXPOSURE |Crew=FALSE |499          |817         |
  
  
  Outcome: Survived
  Outcome + : Yes
  Outcome - : No
  
  Exposure: Crew
  Exposure + : TRUE
  Exposure - : FALSE
  
  Number of missing observations: 0
  
  Odds Ratio: 0.516 (0.426,0.624)
  Risk Ratio: 0.632 (0.551,0.724)
  Risk Difference: -0.14 (-0.178,-0.101)
  
  |         |           |OUTCOME      |OUTCOME     |
  |:--------|:----------|:------------|:-----------|
  |         |           |Survived=Yes |Survived=No |
  |EXPOSURE |Crew=TRUE  |212          |673         |
  |EXPOSURE |Crew=FALSE |499          |817         |
  
  
  Outcome: Survived
  Outcome + : Yes
  Outcome - : No
  
  Exposure: Crew
  Exposure + : TRUE
  Exposure - : FALSE
  
  Number of missing observations: 0
  
  
  |         |           |OUTCOME      |OUTCOME     |
  |:--------|:----------|:------------|:-----------|
  |         |           |Survived=Yes |Survived=No |
  |EXPOSURE |Crew=TRUE  |212          |673         |
  |EXPOSURE |Crew=FALSE |499          |817         |
  
  
  Outcome: Survived
  Outcome + : Yes
  Outcome - : No
  
  Exposure: Crew
  Exposure + : TRUE
  Exposure - : FALSE
  
  Number of missing observations: 0
  
  
  |         |           |OUTCOME      |OUTCOME     |
  |:--------|:----------|:------------|:-----------|
  |         |           |Survived=Yes |Survived=No |
  |EXPOSURE |Crew=TRUE  |212          |673         |
  |EXPOSURE |Crew=FALSE |499          |817         |
  
  
  Outcome: Survived
  Outcome + : Yes
  Outcome - : No
  
  Exposure: Crew
  Exposure + : TRUE
  Exposure - : FALSE
  
  Number of missing observations: 0
  
  == Failed tests ================================================================
  -- Error (test-af-impact.R:3:1): (code run outside of `test_that()`) -----------
  Error: 'rho' must be an environment not pairlist: detected in C-level eval
  Backtrace:
      x
   1. +-`%>%`(...) test-af-impact.R:3:0
   2. +-twoxtwo::twoxtwo(., exposed, disease)
   3. | \-`%>%`(...)
   4. +-base::nrow(.)
   5. \-dplyr::filter(., is.na(!!quo_exposure) | is.na(!!quo_outcome))
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 34 ]
  Error: Test failures
  Execution halted