Running ‘testthat.R’ [42s/79s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ariExtra)
  > 
  > test_check("ariExtra")
  Converting page 1 to /tmp/RtmpUyaq4x/working_dir/Rtmp9zainO/file5069120628ae.png... done!
  Converting page 2 to /tmp/RtmpUyaq4x/working_dir/Rtmp9zainO/file5069fd11f31.png... done!
  Converting page 3 to /tmp/RtmpUyaq4x/working_dir/Rtmp9zainO/file5069750b5980.png... done!
  Converting page 4 to /tmp/RtmpUyaq4x/working_dir/Rtmp9zainO/file506927e36471.png... done!
  Converting page 5 to /tmp/RtmpUyaq4x/working_dir/Rtmp9zainO/file5069bea1331.png... done!
  Converting page 6 to /tmp/RtmpUyaq4x/working_dir/Rtmp9zainO/file50693166449.png... done!
  Converting page 7 to /tmp/RtmpUyaq4x/working_dir/Rtmp9zainO/file5069712d2168.png... done!
  Converting page 1 to /tmp/RtmpUyaq4x/working_dir/Rtmp9zainO/file506979727729.png... done!
  Converting page 2 to /tmp/RtmpUyaq4x/working_dir/Rtmp9zainO/file50694bb84182.png... done!
  Converting page 3 to /tmp/RtmpUyaq4x/working_dir/Rtmp9zainO/file506982474e4.png... done!
  Converting page 4 to /tmp/RtmpUyaq4x/working_dir/Rtmp9zainO/file50697665727.png... done!
  Converting page 5 to /tmp/RtmpUyaq4x/working_dir/Rtmp9zainO/file506973ce7aee.png... done!
  Converting page 6 to /tmp/RtmpUyaq4x/working_dir/Rtmp9zainO/file5069518add8.png... done!
  Converting page 7 to /tmp/RtmpUyaq4x/working_dir/Rtmp9zainO/file50693e5c4005.png... done!
  ── 1. Failure: xaringan example (@test-rmd_to_ari.R#26)  ───────────────────────
  `{ ... }` threw an error with unexpected message.
  Expected match: "Failed to generate|Cannot find.* Google Chrome"
  Actual message: "length(script) > 0 is not TRUE"
  Backtrace:
   1. testthat::expect_error(...)
   6. ariExtra::rmd_to_ari(...)
   7. ariExtra::make_ari_document(...)
   8. base::stopifnot(...)
  
  ── 2. Failure: xaringan example (@test-rmd_to_ari.R#33)  ───────────────────────
  `{ ... }` threw an error with unexpected message.
  Expected match: "Failed to|Cannot find.* Google Chrome"
  Actual message: "pagedown pacakge needed to use chrome_print"
  Backtrace:
   1. testthat::expect_error(...)
   6. ariExtra::rmd_to_ari(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 4 | SKIPPED: 1 | WARNINGS: 11 | FAILED: 2 ]
  1. Failure: xaringan example (@test-rmd_to_ari.R#26) 
  2. Failure: xaringan example (@test-rmd_to_ari.R#33) 
  
  Error: testthat unit tests failed
  Execution halted