Running 'testthat.R' [94s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(precommit)
  > test_check("precommit")
  [ FAIL 2 | WARN 1 | SKIP 5 | PASS 101 ]
  
  ══ Skipped tests (5) ═══════════════════════════════════════════════════════════
  • On CRAN (3): 'test-config.R:15:3', 'test-setup.R:88:3', 'test-zzz.R:2:3'
  • not_conda() is TRUE (1): 'test-hooks-regex-exclude.R:2:3'
  • on_cran() is TRUE (1): 'test-exec.R:21:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-hook-roxygenize.R:141:3'): fails when there is invalid code ──
  `roxygenize_with_cache(list(getwd()), dirs = dirs_R.cache("roxygenize"))` threw an error with unexpected message.
  Expected match: "[Uu]nexpected symbol"
  Actual message: "D:\\temp\\RtmpgxeYwD\\file17258731e3ae6\\R\\more.R:1:9: syntax error\n1: invalid code\n            ^"
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-hook-roxygenize.R:141: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. └─precommit::roxygenize_with_cache(list(getwd()), dirs = dirs_R.cache("roxygenize"))
   7.   └─rlang::abort(conditionMessage(out))
  ── Error ('test-hooks.R:40:1'): (code run outside of `test_that()`) ────────────
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::map2(path_candidate, path_candidate_temp, hook_state_assert_one, 
      tempdir = tempdir, file_transformer = file_transformer, path_stdout = path_stdout, 
      path_stderr = path_stderr, expect_success = expect_success, 
      std_err = std_err, std_out = std_out, exit_status = exit_status)`: ℹ In index: 1.
  ℹ With name: style-files-fail-parse.R.
  Caused by error:
  ! paste(contents, collapse = "\n") does not match "unexpected".
  Actual value: "Error: When processing style-files-fail-parse.R: <text>:1:4: syntax error\n1: 1+ )\n       ^\nExecution halted"
  
  [ FAIL 2 | WARN 1 | SKIP 5 | PASS 101 ]
  Error: Test failures
  Execution halted