Running ‘build-tools.R’ [1s/1s]
  Running ‘testthat.R’ [19s/22s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pkgbuild)
  > 
  > test_check("pkgbuild")
  [ FAIL 2 | WARN 0 | SKIP 26 | PASS 109 ]
  
  ══ Skipped tests (26) ══════════════════════════════════════════════════════════
  • On CRAN (24): 'test-archives.R:24:1', 'test-build-process.R:22:3',
    'test-build-process.R:42:3', 'test-build-process.R:84:1',
    'test-build.R:152:1', 'test-build.R:183:1', 'test-build.R:204:1',
    'test-compiler-flags.R:1:1', 'test-compiler.R:4:3', 'test-compiler.R:17:3',
    'test-exclude.R:1:1', 'test-exclude.R:25:1', 'test-exclude.R:38:1',
    'test-exclude.R:78:1', 'test-exclude.R:94:1', 'test-exclude.R:122:1',
    'test-exclude.R:139:1', 'test-exclude.R:146:1', 'test-exclude.R:160:1',
    'test-find-package-root.R:38:1', 'test-style.R:1:1', 'test-utils.R:1:1',
    'test-utils.R:83:1', 'test-withr.R:2:3'
  • is_windows() && !is.null(scan_path_for_rtools()) is not TRUE (1):
    'test-rtools.R:2:3'
  • is_windows() is not TRUE (1): 'test-rtools.R:27:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-build.R:251:3'): Config/build/clean-inst-doc FALSE ─────────────
  <system_command_status_error/system_command_error/rlib_error_3_0/rlib_error/error/condition>
  Error in `c("(function (command = NULL, args = character(), error_on_status = TRUE, ", "    wd = NULL, echo_cmd = FALSE, echo = FALSE, spinner = FALSE, ")`: ! System command 'R' failed
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-build.R:251:3
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. ├─pkgbuild::build(...)
   10. │ ├─pkgbuild:::withr_with_makevars(...)
   11. │ │ ├─pkgbuild:::withr_with_envvar(...)
   12. │ │ │ └─base::force(code)
   13. │ │ └─base::force(code)
   14. │ ├─pkgbuild:::withr_with_temp_libpaths(...)
   15. │ │ └─base::force(code)
   16. │ └─pkgbuild::rcmd_build_tools(...)
   17. │   ├─pkgbuild::with_build_tools(...)
   18. │   ├─base::withCallingHandlers(...)
   19. │   └─callr::rcmd_safe(...)
   20. │     └─callr:::run_r(options)
   21. │       ├─base::with(...)
   22. │       └─base::with.default(...)
   23. │         └─base::eval(substitute(expr), data, enclos = parent.frame())
   24. │           └─base::eval(substitute(expr), data, enclos = parent.frame())
   25. │             ├─callr:::with_envvar(...)
   26. │             │ └─base::force(code)
   27. │             ├─base::do.call(...)
   28. │             └─processx (local) `<fn>`(...)
   29. │               └─throw(...)
   30. │                 └─base::signalCondition(cond)
   31. └─pkgbuild (local) `<fn>`(`<S3: system_command_status_error>`)
   32.   └─asNamespace("callr")$err$throw(e)
  ── Error ('test-build.R:280:3'): Config/build/clean-inst-doc TRUE ──────────────
  <system_command_status_error/system_command_error/rlib_error_3_0/rlib_error/error/condition>
  Error in `c("(function (command = NULL, args = character(), error_on_status = TRUE, ", "    wd = NULL, echo_cmd = FALSE, echo = FALSE, spinner = FALSE, ")`: ! System command 'R' failed
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(...) at test-build.R:280:3
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ ├─withr::with_output_sink(...)
    5. │   │ │ └─base::force(code)
    6. │   │ ├─base::withCallingHandlers(...)
    7. │   │ └─base::withVisible(code)
    8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    9. ├─pkgbuild::build(...)
   10. │ ├─pkgbuild:::withr_with_makevars(...)
   11. │ │ ├─pkgbuild:::withr_with_envvar(...)
   12. │ │ │ └─base::force(code)
   13. │ │ └─base::force(code)
   14. │ ├─pkgbuild:::withr_with_temp_libpaths(...)
   15. │ │ └─base::force(code)
   16. │ └─pkgbuild::rcmd_build_tools(...)
   17. │   ├─pkgbuild::with_build_tools(...)
   18. │   ├─base::withCallingHandlers(...)
   19. │   └─callr::rcmd_safe(...)
   20. │     └─callr:::run_r(options)
   21. │       ├─base::with(...)
   22. │       └─base::with.default(...)
   23. │         └─base::eval(substitute(expr), data, enclos = parent.frame())
   24. │           └─base::eval(substitute(expr), data, enclos = parent.frame())
   25. │             ├─callr:::with_envvar(...)
   26. │             │ └─base::force(code)
   27. │             ├─base::do.call(...)
   28. │             └─processx (local) `<fn>`(...)
   29. │               └─throw(...)
   30. │                 └─base::signalCondition(cond)
   31. └─pkgbuild (local) `<fn>`(`<S3: system_command_status_error>`)
   32.   └─asNamespace("callr")$err$throw(e)
  
  [ FAIL 2 | WARN 0 | SKIP 26 | PASS 109 ]
  Error:
  ! Test failures.
  Execution halted