Running ‘build-tools.R’ [1s/1s]
  Running ‘testthat.R’ [9s/15s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(pkgbuild)
  > 
  > test_check("pkgbuild")
  ── 1. Error: binary builds return correct filenames (@test-build-process.r#33)  
  Build process failed
  1: expect_true(file.exists(pr$get_built_file())) at testthat/test-build-process.r:33
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: file.exists(pr$get_built_file())
  5: pr$get_built_file()
  6: stop("Build process failed")
  
  ── 2. Error: can build package without src without compiler (@test-build-process
  Build process failed
  1: without_compiler({
         pr <- pkgbuild_process$new("testDummy", binary = TRUE, dest_path = tmp)
         pr$wait(60000)
         if (pr$is_alive()) {
             pr$kill()
             skip("has not finished in one minute")
         }
         expect_true(file.exists(pr$get_dest_path()))
         expect_true(file.exists(pr$get_built_file()))
         expect_true(!is.na(desc::desc(pr$get_built_file())$get("Built")))
     }) at testthat/test-build-process.r:41
  2: without_cache({
         withr::with_makevars(flags, code)
     })
  3: withr::with_makevars(flags, code)
  4: with_envvar(c(R_MAKEVARS_USER = makevars_file), {
         set_makevars(new, path, makevars_file, assignment = assignment)
         force(code)
     })
  5: force(code)
  6: force(code)
  7: expect_true(file.exists(pr$get_built_file())) at testthat/test-build-process.r:50
  8: quasi_label(enquo(object), label)
  9: eval_bare(get_expr(quo), get_env(quo))
  10: file.exists(pr$get_built_file())
  11: pr$get_built_file()
  12: stop("Build process failed")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 47 SKIPPED: 2 FAILED: 2
  1. Error: binary builds return correct filenames (@test-build-process.r#33) 
  2. Error: can build package without src without compiler (@test-build-process.r#41) 
  
  Error: testthat unit tests failed
  Execution halted