Running 'testthat.R'
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(pkgload)
  > 
  > # Needed so that install.packages works correctly
  > Sys.setenv("R_TESTS" = "")
  > 
  > test_check("pkgload")
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-dll.r:17:3): unload() unloads DLLs from packages loaded with library() ──
  require(testDllLoad) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  ── Error (test-dll.r:21:3): unload() unloads DLLs from packages loaded with library() ──
  Error: could not find function "nulltest"
  Backtrace:
      █
   1. └─testthat::expect_true(is.null(nulltest())) test-dll.r:21:2
   2.   └─testthat::quasi_label(enquo(object), label, arg = "object")
   3.     └─rlang::eval_bare(expr, quo_get_env(quo))
  ── Error (test-dll.r:44:3): load_all() compiles and loads DLLs ─────────────────
  Error: Could not find tools necessary to compile a package
  Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
  Backtrace:
      █
   1. └─pkgload::load_all("testDllLoad", reset = TRUE, quiet = TRUE) test-dll.r:44:2
   2.   └─pkgbuild::compile_dll(path, quiet = quiet)
   3.     └─pkgbuild::check_build_tools(quiet = TRUE)
  ── Error (test-dll.r:82:3): Specific functions from DLLs listed in NAMESPACE can be called ──
  Error: Could not find tools necessary to compile a package
  Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
  Backtrace:
      █
   1. └─pkgload::load_all("testDllLoad", quiet = TRUE) test-dll.r:82:2
   2.   └─pkgbuild::compile_dll(path, quiet = quiet)
   3.     └─pkgbuild::check_build_tools(quiet = TRUE)
  ── Error (test-dll.r:108:3): load_all() can compile and load DLLs linked to Rcpp ──
  Error: Could not find tools necessary to compile a package
  Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
  Backtrace:
      █
   1. └─pkgload::load_all("testDllRcpp", reset = TRUE, quiet = TRUE) test-dll.r:108:2
   2.   └─pkgbuild::compile_dll(path, quiet = quiet)
   3.     └─pkgbuild::check_build_tools(quiet = TRUE)
  
  [ FAIL 5 | WARN 2 | SKIP 0 | PASS 301 ]
  Error: Test failures
  Execution halted