Running ‘testthat.R’ [5s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(confoundr)
  > 
  > test_check("confoundr")
  ── 1. Error: diagnostic 1, recent, recency 1 (@testBalanceWApplyScope.r#11)  ───
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 2. Error: diagnostic 2, average over strata (@testBalanceWApplyScope.r#65)  ─
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 3. Error: diagnostic 1, average over history (@testBalanceWApplyScope.r#117) 
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 4. Error: diagnostic 1, average over time (@testBalanceWApplyScope.r#167)  ──
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 5. Error: diagnostic 1, average within periods of distance (@testBalanceWAppl
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 6. Error: diagnostic 1, average over distance (@testBalanceWApplyScope.r#264)
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 7. Error: diagnostic 1, no censoring, scope all (@testBalanceWOApplyScope.r#1
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 8. Error: diagnostic 1, censoring, scope all (@testBalanceWOApplyScope.r#68) 
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 9. Error: diagnostic 2, no censoring, weight, scope all (@testBalanceWOApplyS
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 10. Error: diagnostic 2, censoring, weight, stratify, scope all (@testBalance
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 11. Error: diagnostic 2, no censoring, stratify, scope all (@testBalanceWOApp
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 12. Error: diagnostic 2, censoring, stratify, scope all (@testBalanceWOApplyS
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 13. Error: diagnostic 3, no censoring, weight, scope all (@testBalanceWOApply
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 14. Error: diagnostic 3, censoring, weight, scope all (@testBalanceWOApplySco
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 15. Error: diagnostic 3, no censoring, stratify, scope all (@testBalanceWOApp
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 16. Error: diagnostic 1, scope recent, recency 0 (@testDiagnose.r#11)  ──────
  'where' must be an environment
  Backtrace:
    1. confoundr::diagnose(...)
    2. confoundr:::loop.fxn(...)
    3. confoundr::lengthen(...)
   11. tidyr::separate(...)
   12. ellipsis::check_dots_used()
   14. ellipsis:::exit_handler(action)
   15. base::bquote(...)
  
  ── 17. Error: Diagnostic 1, Exposure #1 (@testLengthenJoint.r#11)  ─────────────
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 18. Error: Diagnostic 1, Exposure #2 (@testLengthenJoint.r#48)  ─────────────
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 19. Error: Diagnostic 2, Exposure #1, weight (@testLengthenJoint.r#85)  ─────
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 20. Error: Diagnostic 2, Exposure #1, stratification (@testLengthenJoint.r#12
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 21. Error: Diagnostic 3, Exposure #1, weight (@testLengthenJoint.r#164)  ────
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 22. Error: Diagnostic 3, Exposure #2, stratification (@testLengthenJoint.r#20
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 23. Error: Diagnostic 1, no censoring (@testLengthenSingle.r#11)  ───────────
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 24. Error: Diagnostic 1, censoring (@testLengthenSingle.r#48)  ──────────────
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 25. Error: Diagnostic 2, no censoring, weight (@testLengthenSingle.r#88)  ───
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 26. Error: Diagnostic 2, censoring, weight (@testLengthenSingle.r#128)  ─────
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 27. Error: Diagnostic 2, no censoring, stratification (@testLengthenSingle.r#
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 28. Error: Diagnostic 2, censoring, stratification (@testLengthenSingle.r#214
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 29. Error: Diagnostic 3, no censoring, weight (@testLengthenSingle.r#260)  ──
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 30. Error: Diagnostic 3, censoring, weight (@testLengthenSingle.r#300)  ─────
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 31. Error: Diagnostic 3, no censoring, stratification (@testLengthenSingle.r#
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 32. Error: Diagnostic 3, censoring, stratification (@testLengthenSingle.r#385
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 33. Error: Formats and Names under No Dropout (@testMakeHistoryOne.r#12)  ───
  'where' must be an environment
  Backtrace:
    1. confoundr::makehistory.one(...)
    2. dplyr::ungroup(.)
    2. dplyr::select(., .data$ID, list.exposure)
    2. tidyr::gather(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 34. Error: Formats and Names under Dropout (@testMakeHistoryOne.r#50)  ──────
  'where' must be an environment
  Backtrace:
    1. confoundr::makehistory.one(...)
    2. dplyr::ungroup(.)
    2. dplyr::select(., .data$ID, list.exposure)
    2. tidyr::gather(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 35. Error: Formats and Names under No Dropout (@testMakeHistoryTwo.r#12)  ───
  'where' must be an environment
  Backtrace:
    1. confoundr::makehistory.two(...)
    2. dplyr::ungroup(.)
    2. dplyr::select(., .data$ID, list.exposure.a, list.exposure.b)
    2. tidyr::gather(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 36. Error: Formats and Names under Dropout (@testMakeHistoryTwo.r#71)  ──────
  'where' must be an environment
  Backtrace:
    1. confoundr::makehistory.two(...)
    2. dplyr::ungroup(.)
    2. dplyr::select(., .data$ID, list.exposure.a, list.exposure.b)
    2. tidyr::gather(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 37. Error: relative time omission (@testOmitHistory.r#11)  ──────────────────
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 38. Error: fixed time omission (@testOmitHistory.r#54)  ─────────────────────
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 39. Error: same time omission (@testOmitHistory.r#97)  ──────────────────────
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ── 40. Error: preserve name.cov format (@testOmitHistory.r#139)  ───────────────
  'where' must be an environment
  Backtrace:
    1. confoundr::lengthen(...)
    9. tidyr::separate(...)
   10. ellipsis::check_dots_used()
   12. ellipsis:::exit_handler(action)
   13. base::bquote(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 8 | SKIPPED: 0 | WARNINGS: 26 | FAILED: 40 ]
  1. Error: diagnostic 1, recent, recency 1 (@testBalanceWApplyScope.r#11) 
  2. Error: diagnostic 2, average over strata (@testBalanceWApplyScope.r#65) 
  3. Error: diagnostic 1, average over history (@testBalanceWApplyScope.r#117) 
  4. Error: diagnostic 1, average over time (@testBalanceWApplyScope.r#167) 
  5. Error: diagnostic 1, average within periods of distance (@testBalanceWApplyScope.r#215) 
  6. Error: diagnostic 1, average over distance (@testBalanceWApplyScope.r#264) 
  7. Error: diagnostic 1, no censoring, scope all (@testBalanceWOApplyScope.r#13) 
  8. Error: diagnostic 1, censoring, scope all (@testBalanceWOApplyScope.r#68) 
  9. Error: diagnostic 2, no censoring, weight, scope all (@testBalanceWOApplyScope.r#124) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted