Running ‘testthat.R’ [7s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(expstudies)
  > 
  > test_check("expstudies")
  ── 1. Failure: Correct handling of end dates prior to start dates (@test-exposur
  all.equal(addExposures(two_records_one_late), good_PY) not equal to TRUE.
  Types not compatible: character is not logical
  
  ── 2. Failure: Policy year exposure calculation works (@test-exposure_functions.
  all.equal(addExposures(record_start, type = "PY"), good_PY) not equal to TRUE.
  Types not compatible: character is not logical
  
  ── 3. Failure: Policy month exposure calculation works (@test-exposure_functions
  all.equal(addExposures(record_start, type = "PM"), good_PM) not equal to TRUE.
  Types not compatible: character is not logical
  
  ── 4. Failure: Policy year with calendar year exposure calculation works, mid an
  all.equal(addExposures(record_mid, type = "PYCY"), good_PYCY_mid) not equal to TRUE.
  Types not compatible: character is not logical
  
  ── 5. Failure: Policy year with calendar year exposure calculation works, mid an
  all.equal(addExposures(record_start, type = "PYCY"), good_PYCY_start) not equal to TRUE.
  Types not compatible: character is not logical
  
  ── 6. Failure: Policy year with calendar month exposure calculation works, mid a
  all.equal(addExposures(record_mid, type = "PYCM"), good_PYCM_mid) not equal to TRUE.
  Types not compatible: character is not logical
  
  ── 7. Failure: Policy year with calendar month exposure calculation works, mid a
  all.equal(addExposures(record_start, type = "PYCM"), good_PYCM_start) not equal to TRUE.
  Types not compatible: character is not logical
  
  ── 8. Failure: Policy month with calendar year exposure calculation works, mid a
  all.equal(addExposures(record_mid, type = "PMCY"), good_PMCY_mid) not equal to TRUE.
  Types not compatible: character is not logical
  
  ── 9. Failure: Policy month with calendar year exposure calculation works, mid a
  all.equal(addExposures(record_start, type = "PMCY"), good_PMCY_start) not equal to TRUE.
  Types not compatible: character is not logical
  
  ── 10. Failure: Policy month with calendar month exposure calculation works, mid
  all.equal(addExposures(record_mid, type = "PMCM"), good_PMCM_mid) not equal to TRUE.
  Types not compatible: character is not logical
  
  ── 11. Failure: Policy month with calendar month exposure calculation works, mid
  all.equal(addExposures(record_start, type = "PMCM"), good_PMCM_start) not equal to TRUE.
  Types not compatible: character is not logical
  
  ── 12. Failure: lower_year argument works for truncation (@test-exposure_functio
  all.equal(...) not equal to TRUE.
  Types not compatible: character is not logical
  
  ── 13. Failure: lower_year argument works for truncation (@test-exposure_functio
  all.equal(...) not equal to TRUE.
  Types not compatible: character is not logical
  
  ── 14. Failure: lower_year argument works for truncation (@test-exposure_functio
  all.equal(...) not equal to TRUE.
  Types not compatible: character is not logical
  
  ── 15. Failure: lower_year argument works for truncation (@test-exposure_functio
  all.equal(...) not equal to TRUE.
  Types not compatible: character is not logical
  
  ── 16. Failure: lower_year argument works for truncation (@test-exposure_functio
  all.equal(...) not equal to TRUE.
  Types not compatible: character is not logical
  
  ── 17. Failure: lower_year argument works for truncation (@test-exposure_functio
  all.equal(...) not equal to TRUE.
  Types not compatible: character is not logical
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 9 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 17 ]
  1. Failure: Correct handling of end dates prior to start dates (@test-exposure_functions.R#20) 
  2. Failure: Policy year exposure calculation works (@test-exposure_functions.R#30) 
  3. Failure: Policy month exposure calculation works (@test-exposure_functions.R#33) 
  4. Failure: Policy year with calendar year exposure calculation works, mid and start (@test-exposure_functions.R#36) 
  5. Failure: Policy year with calendar year exposure calculation works, mid and start (@test-exposure_functions.R#37) 
  6. Failure: Policy year with calendar month exposure calculation works, mid and start (@test-exposure_functions.R#40) 
  7. Failure: Policy year with calendar month exposure calculation works, mid and start (@test-exposure_functions.R#41) 
  8. Failure: Policy month with calendar year exposure calculation works, mid and start (@test-exposure_functions.R#44) 
  9. Failure: Policy month with calendar year exposure calculation works, mid and start (@test-exposure_functions.R#45) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted