Running ‘testthat.R’ [9s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # Got this Sys.setenv line from https://github.com/luckyrandom/cmaker/blob/b85813ac2b7aef69932eca8fbb4fa0ec225e0af0/tests/testthat.R
  > # so that devtools:check() won't hang.
  > # setting R_TESTS to empty string because of
  > # https://github.com/hadley/testthat/issues/144
  > # revert this when that issue in R is fixed.
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(simulator)
  
  Attaching package: 'simulator'
  
  The following object is masked from 'package:testthat':
  
      describe
  
  > 
  > test_check("simulator")
  Saving _problems/test-table-60.R
  Saving _problems/test-table-62.R
  [ FAIL 2 | WARN 0 | SKIP 5 | PASS 118 ]
  
  ══ Skipped tests (5) ═══════════════════════════════════════════════════════════
  • On CRAN (4): 'test-method-extension.R:65:3', 'test-parallel.R:52:3',
    'test-parallel.R:71:3', 'test-parallel.R:97:3'
  • {knitr} is not installed. (1): 'test-create.R:9:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-table.R:59:3'): can make a table ─────────────────────────────
  `tabulate_eval(evlist, "sqerr", method_names = "yours")` threw an error with unexpected message.
  Expected match: "not found in any evals"
  Actual message: "To use this function, knitr must be installed."
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-table.R:59:3
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─simulator::tabulate_eval(evlist, "sqerr", method_names = "yours")
  ── Failure ('test-table.R:61:3'): can make a table ─────────────────────────────
  `tabulate_eval(evlist, "sqerr", method_names = "his", format_args = list(digits = 2))` threw an error.
  Message: To use this function, knitr must be installed.
  Class:   simpleError/error/condition
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-table.R:61:3
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─simulator::tabulate_eval(...)
  
  [ FAIL 2 | WARN 0 | SKIP 5 | PASS 118 ]
  Error:
  ! Test failures.
  Execution halted