Running ‘testthat.R’ [4s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(prettifyAddins)
  > 
  > test_check("prettifyAddins")
  [ FAIL 2 | WARN 0 | SKIP 8 | PASS 3 ]
  
  ══ Skipped tests (8) ═══════════════════════════════════════════════════════════
  • 'phantomjs' not found (4): 'test-PhantomJS.R:2:3', 'test-PhantomJS.R:17:3',
    'test-PhantomJS.R:32:3', 'test-PhantomJS.R:49:3'
  • V8 engine too old. (4): 'test-V8.R:3:3', 'test-V8.R:19:3', 'test-V8.R:35:3',
    'test-V8.R:51:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-CLANG.R:9:3'): CLANG prettify C++ with default `tabSize` ───────
  <cmdError/error/condition>
  Error in `system2("clang-format", tmpFile, stdout = TRUE, stderr = TRUE)`: error in running command
  Backtrace:
      ▆
   1. └─prettifyAddins::prettifyCLANG(code, language = "c++") at test-CLANG.R:9:3
   2.   ├─base::suppressWarnings(...)
   3.   │ └─base::withCallingHandlers(...)
   4.   └─base::system2("clang-format", tmpFile, stdout = TRUE, stderr = TRUE)
  ── Error ('test-CLANG.R:24:3'): CLANG prettify C++ with given `tabSize` ────────
  <cmdError/error/condition>
  Error in `system2("clang-format", tmpFile, stdout = TRUE, stderr = TRUE)`: error in running command
  Backtrace:
      ▆
   1. └─prettifyAddins::prettifyCLANG(code, language = "c++", tabSize = 4) at test-CLANG.R:24:3
   2.   ├─base::suppressWarnings(...)
   3.   │ └─base::withCallingHandlers(...)
   4.   └─base::system2("clang-format", tmpFile, stdout = TRUE, stderr = TRUE)
  
  [ FAIL 2 | WARN 0 | SKIP 8 | PASS 3 ]
  Error: Test failures
  Execution halted
installed size is  5.5Mb
  sub-directories of 1Mb or more:
    shinyApp   5.4Mb
installed size is  5.5Mb
  sub-directories of 1Mb or more:
    shinyApp   5.4Mb
installed size is  5.5Mb
  sub-directories of 1Mb or more:
    shinyApp   5.4Mb