Running ‘testthat.R’ [4s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(mortAAR)
  > 
  > test_check("mortAAR")
  ── 1. Failure: plot produces no error (@test_output_functions.R#114)  ──────────
  `plot(a_live_table, display = "dx")` threw an error.
  Message: VECTOR_ELT() can only be applied to a 'list', not a 'double'
  Class:   simpleError/error/condition
  
  ── 2. Failure: plot produces no error (@test_output_functions.R#115)  ──────────
  `plot(a_live_table, display = "qx")` threw an error.
  Message: VECTOR_ELT() can only be applied to a 'list', not a 'double'
  Class:   simpleError/error/condition
  
  ── 3. Failure: plot produces no error (@test_output_functions.R#116)  ──────────
  `plot(a_live_table, display = "lx")` threw an error.
  Message: VECTOR_ELT() can only be applied to a 'list', not a 'double'
  Class:   simpleError/error/condition
  
  ── 4. Failure: plot produces no error (@test_output_functions.R#117)  ──────────
  `plot(a_live_table, display = "ex")` threw an error.
  Message: VECTOR_ELT() can only be applied to a 'list', not a 'double'
  Class:   simpleError/error/condition
  
  ── 5. Failure: plot produces no error (@test_output_functions.R#118)  ──────────
  `plot(a_live_table, display = "rel_popx")` threw an error.
  Message: VECTOR_ELT() can only be applied to a 'list', not a 'double'
  Class:   simpleError/error/condition
  
  ── 6. Failure: plot life table list produces no error (@test_output_functions.R#
  `plot(a_live_table)` threw an error.
  Message: VECTOR_ELT() can only be applied to a 'list', not a 'double'
  Class:   simpleError/error/condition
  
  ── 7. Failure: plot produces no error (@test_output_functions.R#136)  ──────────
  `plot(a_live_table$schleswig_ma, display = "dx")` threw an error.
  Message: VECTOR_ELT() can only be applied to a 'list', not a 'double'
  Class:   simpleError/error/condition
  
  ── 8. Failure: plot produces no error (@test_output_functions.R#137)  ──────────
  `plot(a_live_table$schleswig_ma, display = "qx")` threw an error.
  Message: VECTOR_ELT() can only be applied to a 'list', not a 'double'
  Class:   simpleError/error/condition
  
  ── 9. Failure: plot produces no error (@test_output_functions.R#138)  ──────────
  `plot(a_live_table$schleswig_ma, display = "lx")` threw an error.
  Message: VECTOR_ELT() can only be applied to a 'list', not a 'double'
  Class:   simpleError/error/condition
  
  ── 10. Failure: plot produces no error (@test_output_functions.R#139)  ─────────
  `plot(a_live_table$schleswig_ma, display = "ex")` threw an error.
  Message: VECTOR_ELT() can only be applied to a 'list', not a 'double'
  Class:   simpleError/error/condition
  
  ── 11. Failure: plot produces no error (@test_output_functions.R#140)  ─────────
  `plot(a_live_table$schleswig_ma, display = "rel_popx")` threw an error.
  Message: VECTOR_ELT() can only be applied to a 'list', not a 'double'
  Class:   simpleError/error/condition
  
  ── 12. Failure: plot individual life table produces no error (@test_output_funct
  `plot(a_live_table$schleswig_ma)` threw an error.
  Message: VECTOR_ELT() can only be applied to a 'list', not a 'double'
  Class:   simpleError/error/condition
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 75 SKIPPED: 0 FAILED: 12
  1. Failure: plot produces no error (@test_output_functions.R#114) 
  2. Failure: plot produces no error (@test_output_functions.R#115) 
  3. Failure: plot produces no error (@test_output_functions.R#116) 
  4. Failure: plot produces no error (@test_output_functions.R#117) 
  5. Failure: plot produces no error (@test_output_functions.R#118) 
  6. Failure: plot life table list produces no error (@test_output_functions.R#130) 
  7. Failure: plot produces no error (@test_output_functions.R#136) 
  8. Failure: plot produces no error (@test_output_functions.R#137) 
  9. Failure: plot produces no error (@test_output_functions.R#138) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted