Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(precommit)
  > test_check("precommit")
  Styling  1  files:
   style-files-success.R v 
  ----------------------------------------
  Status	Count	Legend 
  v 	1	File unchanged.
  i 	0	File changed.
  x 	0	Styling threw an error.
  ----------------------------------------
  Styling  1  files:
   style-files-fail-changed.R i 
  ----------------------------------------
  Status	Count	Legend 
  v 	0	File unchanged.
  i 	1	File changed.
  x 	0	Styling threw an error.
  ----------------------------------------
  Please review the changes carefully!
  Styling  1  files:
   style-files-fail-parse.R Styling  1  files:
   style-files-cmd-success.R v 
  ----------------------------------------
  Status	Count	Legend 
  v 	1	File unchanged.
  i 	0	File changed.
  x 	0	Styling threw an error.
  ----------------------------------------
  Styling  1  files:
   style-files-cmd-fail.R i 
  ----------------------------------------
  Status	Count	Legend 
  v 	0	File unchanged.
  i 	1	File changed.
  x 	0	Styling threw an error.
  ----------------------------------------
  Please review the changes carefully!
  Not all packages used in your code are listed in DESCRIPTION. The following are missing in file `deps-in-desc-fail.R`: xzywdj.
  You can add them with `usethis::use_package()` or `usethis::use_dev_package()`.
  You should not call any function with `:::` unless it's a function you define yourself in this package. The following files have such function calls: deps-in-desc-dot3-fail.R══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (2)
  • not_conda() is TRUE (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-all.R:65:1): (code run outside of `test_that()`) ──────────────
  Expected: No error. Found:
  Error in loadNamespace(x) : there is no package called 'spelling'
  Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
  Execution halted
  Backtrace:
      █
   1. └─precommit:::run_test("spell-check", suffix = "-success.md", error_msg = NULL) test-all.R:65:0
   2.   └─precommit:::run_test_impl(...)
  ── Failure (test-all.R:68:1): (code run outside of `test_that()`) ──────────────
  paste(contents, collapse = "\n") does not match "Spell check failed".
  Actual value: "Error in loadNamespace(x) : there is no package called 'spelling'\nCalls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart\nExecution halted"
  Backtrace:
      █
   1. └─precommit:::run_test("spell-check", suffix = "-fail.md", error_msg = "Spell check failed") test-all.R:68:0
   2.   └─precommit:::run_test_impl(...)
   3.     └─testthat::expect_match(...)
   4.       └─testthat:::expect_match_(...)
  ── Failure (test-all.R:71:1): (code run outside of `test_that()`) ──────────────
  Expected: No error. Found:
  Error in loadNamespace(x) : there is no package called 'spelling'
  Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
  Execution halted
  Backtrace:
      █
   1. └─precommit:::run_test(...) test-all.R:71:0
   2.   └─precommit:::run_test_impl(...)
  ── Failure (test-all.R:79:1): (code run outside of `test_that()`) ──────────────
  Expected: No error. Found:
  Error in loadNamespace(x) : there is no package called 'spelling'
  Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
  Execution halted
  Backtrace:
      █
   1. └─precommit:::run_test(...) test-all.R:79:0
   2.   └─precommit:::run_test_impl(...)
  ── Failure (test-all.R:123:1): (code run outside of `test_that()`) ─────────────
  Expected: No error. Found:
  Error in loadNamespace(x) : there is no package called 'lintr'
  Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
  Execution halted
  Backtrace:
      █
   1. └─precommit:::run_test("lintr", suffix = "-success.R", error_msg = NULL) test-all.R:123:0
   2.   └─precommit:::run_test_impl(...)
  ── Failure (test-all.R:129:1): (code run outside of `test_that()`) ─────────────
  paste(contents, collapse = "\n") does not match "not lint free".
  Actual value: "Error in loadNamespace(x) : there is no package called 'lintr'\nCalls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart\nExecution halted"
  Backtrace:
      █
   1. └─precommit:::run_test("lintr", suffix = "-fail.R", error_msg = "not lint free") test-all.R:129:0
   2.   └─precommit:::run_test_impl(...)
   3.     └─testthat::expect_match(...)
   4.       └─testthat:::expect_match_(...)
  ── Failure (test-all.R:132:1): (code run outside of `test_that()`) ─────────────
  Expected: No error. Found:
  Error in loadNamespace(x) : there is no package called 'lintr'
  Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
  Execution halted
  Backtrace:
      █
   1. └─precommit:::run_test(...) test-all.R:132:0
   2.   └─precommit:::run_test_impl(...)
  ── Failure (test-hook-roxygenize.R:7:3): roxygen runs are done if necessary ────
  extract_diff_root(".") not equal to add_trailing_linebreak(text2).
  2/2 mismatches
  x[1]: "x <- function()\r\n"
  y[1]: "x <- function()\n"
  
  x[2]: "  NULL\r\n"
  y[2]: "  NULL\n"
  Backtrace:
      █
   1. ├─withr::with_dir(...) test-hook-roxygenize.R:7:2
   2. │ └─base::force(code)
   3. └─testthat::expect_equal(extract_diff_root("."), add_trailing_linebreak(text2)) test-hook-roxygenize.R:31:6
  ── Failure (test-utils.R:3:3): call capturing for pass ─────────────────────────
  captured$exit_status == 0 is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test-utils.R:6:3): call capturing for pass ─────────────────────────
  length(captured$stdout) == 1 is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Failure (test-utils.R:10:3): call capturing for pass ────────────────────────
  length(captured$stderr) == 0 is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Error (test-utils.R:13:3): call capturing for pass ──────────────────────────
  Error: 
  stderr: Could not recover stderr. Run the following command to get the error
  
  stdout: 
  Backtrace:
      █
   1. ├─testthat::expect_warning(...) test-utils.R:13:2
   2. │ └─testthat:::quasi_capture(enquo(object), label, capture_warnings)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─precommit:::communicate_captured_call(captured)
  ── Failure (test-utils.R:54:3): call capturing for error fo command that exists (but arguments that don't) ──
  `communicate_captured_call(captured)` threw an error with unexpected message.
  Expected match: "No such file or "
  Actual message: "\nstderr: Could not recover stderr. Run the following command to get the error\n\nstdout: "
  Backtrace:
      █
   1. ├─testthat::expect_error(communicate_captured_call(captured), "No such file or ") test-utils.R:54:2
   2. │ └─testthat:::quasi_capture(...)
   3. │   ├─testthat:::.capture(...)
   4. │   │ └─base::withCallingHandlers(...)
   5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. └─precommit:::communicate_captured_call(captured)
  
  [ FAIL 13 | WARN 0 | SKIP 3 | PASS 48 ]
  Error: Test failures
  Execution halted