Running ‘testthat.R’ [111s/97s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(precommit)
  > test_check("precommit")
  Starting 2 test processes
  [ FAIL 3 | WARN 6 | SKIP 13 | PASS 183 ]
  
  ══ Skipped tests (13) ══════════════════════════════════════════════════════════
  • !is_windows() is TRUE (1): 'test-exec.R:23:3'
  • On CRAN (11): 'test-conda.R:207:3', 'test-config.R:15:3',
    'test-impl-hook-roxygenize.R:2:3', 'test-impl-hook-roxygenize.R:46:3',
    'test-impl-hook-roxygenize.R:82:3', 'test-impl-hook-roxygenize.R:95:3',
    'test-impl-hook-roxygenize.R:114:3', 'test-impl-hook-roxygenize.R:127:3',
    'test-impl-hook-roxygenize.R:143:3', 'test-impl-hook-roxygenize.R:155:3',
    'test-zzz.R:2:3'
  • not_conda() is TRUE (1): 'test-impl-hooks-regex-exclude.R:2:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-hook-readme-rmd-rendered.R:13:9'): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'git2r'
  Backtrace:
       ▆
    1. ├─precommit:::run_test(...) at test-hook-readme-rmd-rendered.R:2:3
    2. │ └─precommit:::run_test_impl(...)
    3. │   ├─withr::with_dir(tempdir, file_transformer(path_candidate_temp))
    4. │   │ └─base::force(code)
    5. │   └─precommit (local) file_transformer(path_candidate_temp)
    6. │     └─precommit:::git_init() at test-hook-readme-rmd-rendered.R:13:9
    7. └─base::loadNamespace(x)
    8.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9.     └─base (local) withOneRestart(expr, restarts[[1L]])
   10.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-hook-roxygenize.R:12:5'): (code run outside of `test_that()`) ──
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'git2r'
  Backtrace:
       ▆
    1. ├─precommit:::run_test(...) at test-hook-roxygenize.R:2:1
    2. │ └─precommit:::run_test_impl(...)
    3. │   ├─withr::with_dir(tempdir, file_transformer(path_candidate_temp))
    4. │   │ └─base::force(code)
    5. │   └─precommit (local) file_transformer(path_candidate_temp)
    6. │     └─precommit:::git_init() at test-hook-roxygenize.R:12:5
    7. └─base::loadNamespace(x)
    8.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9.     └─base (local) withOneRestart(expr, restarts[[1L]])
   10.       └─base (local) doWithOneRestart(return(expr), restart)
  ── Error ('test-utils.R:22:3'): git repo status can be evaluated ───────────────
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'git2r'
  Backtrace:
      ▆
   1. ├─precommit:::git_init(tmpdir) at test-utils.R:22:3
   2. └─base::loadNamespace(x)
   3.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   4.     └─base (local) withOneRestart(expr, restarts[[1L]])
   5.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 3 | WARN 6 | SKIP 13 | PASS 183 ]
  Error: Test failures
  Execution halted