Running 'build-tools.R' [0s]
  Running 'testthat.R' [43s]
Running the tests in 'tests/build-tools.R' failed.
Complete output:
  > library(pkgbuild)
  > 
  > check_build_tools(debug = TRUE)
  Error: Could not find tools necessary to compile a package
  Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
  Execution halted
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(pkgbuild)
  > 
  > test_check("pkgbuild")
  [ FAIL 5 | WARN 0 | SKIP 15 | PASS 125 ]
  
  ══ Skipped tests (15) ══════════════════════════════════════════════════════════
  • On CRAN (11): 'test-build-process.R:23:3', 'test-build-process.R:43:3',
    'test-build.R:192:5', 'test-exclude.R:11:3', 'test-exclude.R:66:3',
    'test-exclude.R:110:3', 'test-exclude.R:125:3', 'test-exclude.R:134:3',
    'test-exclude.R:143:3', 'test-style.R:3:3', 'test-utils.R:115:3'
  • On Windows (1): 'test-exclude.R:154:3'
  • is_windows() && !has_rtools() is TRUE (2): 'test-compiler.R:6:5',
    'test-compiler.R:19:5'
  • is_windows() && !is.null(scan_path_for_rtools()) is not TRUE (1):
    'test-rtools.R:3:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-build-process.R:69:3'): source builds return correct filenames ──
  Error: Could not find tools necessary to compile a package
  Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
  Backtrace:
      ▆
   1. └─pkgbuild_process$new("testWithSrc", dest_path = tmp, register_routines = FALSE) at test-build-process.R:69:3
   2.   └─pkgbuild (local) initialize(...)
   3.     └─pkgbuild:::rcb_init(...)
   4.       └─pkgbuild:::build_setup(...)
   5.         └─pkgbuild:::build_setup_source(...)
   6.           └─pkgbuild::check_build_tools(quiet = TRUE)
  ── Error ('test-build.R:125:3'): source builds return correct filenames ────────
  Error: Could not find tools necessary to compile a package
  Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
  Backtrace:
      ▆
   1. └─pkgbuild::build(...) at test-build.R:125:3
   2.   └─pkgbuild:::build_setup(...)
   3.     └─pkgbuild:::build_setup_source(...)
   4.       └─pkgbuild::check_build_tools(quiet = TRUE)
  ── Failure ('test-build_tools.R:4:5'): tests always run in environment with dev tools ──
  has_build_tools() is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  Backtrace:
      ▆
   1. ├─pkgbuild::without_cache(...) at test-build_tools.R:3:3
   2. └─testthat::expect_true(has_build_tools()) at test-build_tools.R:4:5
  ── Failure ('test-build_tools.R:5:5'): tests always run in environment with dev tools ──
  has_rtools() (`actual`) not equal to is_windows() (`expected`).
  
  `actual`:   FALSE
  `expected`: TRUE 
  Backtrace:
      ▆
   1. ├─pkgbuild::without_cache(...) at test-build_tools.R:3:3
   2. └─testthat::expect_equal(has_rtools(), is_windows()) at test-build_tools.R:5:5
  ── Failure ('test-compile_dll.R:3:3'): can compile a DLL and clean up afterwards ──
  `compile_dll("testWithSrc", quiet = TRUE, register_routines = FALSE)` threw an unexpected error.
  Message: Could not find tools necessary to compile a package
  Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
  Class:   simpleError/error/condition
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-compile_dll.R:3:3
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─pkgbuild::compile_dll("testWithSrc", quiet = TRUE, register_routines = FALSE)
   8.   └─pkgbuild::check_build_tools(quiet = TRUE)
  
  [ FAIL 5 | WARN 0 | SKIP 15 | PASS 125 ]
  Error: Test failures
  Execution halted