Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [190s/246s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(golem)
  > 
  > test_check("golem")
  Starting 2 test processes
  [ FAIL 7 | WARN 8 | SKIP 6 | PASS 268 ]
  
  ══ Skipped tests (6) ═══════════════════════════════════════════════════════════
  • On CRAN (6): 'test-add_dockerfiles.R:13:3',
    'test-add_dockerfiles_renv.R:2:3', 'test-browser_button.R:2:3',
    'test-after_creation_msg.R:2:3', 'test-cats.R:2:3', 'test-config.R:100:7'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-add_rstudio_files.R:8:7'): add_rstudio_files ───────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `check_usethis_installed(reason = "to ignore files in the build.")`: The package "usethis" (>= 1.6.0) is required to ignore files in the build.
  Backtrace:
       ▆
    1. ├─golem:::run_quietly_in_a_dummy_golem(...) at test-add_rstudio_files.R:7:5
    2. │ ├─withr::with_options(...) at tests/testthat/setup.R:320:3
    3. │ │ └─base::force(code)
    4. │ └─withr::with_dir(dummy_golem, expr) at tests/testthat/setup.R:323:7
    5. │   └─base::force(code)
    6. └─golem (local) fun(open = FALSE) at test-add_rstudio_files.R:8:7
    7.   └─golem:::add_rstudio_files(pkg = pkg, open = open, service = "RStudio Connect")
    8.     └─golem:::usethis_use_build_ignore(basename(where))
    9.       └─golem:::check_usethis_installed(reason = "to ignore files in the build.")
   10.         └─rlang::check_installed("usethis", version = "1.6.0", reason = reason)
  ── Error ('test-create_golem.R:40:11'): create_golem works ─────────────────────
  <rlib_error_package_not_found/rlang_error/error/condition>
  Error in `create_golem(dir, open = FALSE, package_name = "testpkg")`: The package "usethis" (>= 1.6.0) is required to check the package name.
  Backtrace:
      ▆
   1. ├─testthat::with_mocked_bindings(...) at test-create_golem.R:28:3
   2. ├─withr::with_options(...) at test-create_golem.R:37:7
   3. │ └─base::force(code)
   4. └─golem::create_golem(dir, open = FALSE, package_name = "testpkg") at test-create_golem.R:40:11
   5.   └─rlang::check_installed("usethis", version = "1.6.0", reason = "to check the package name.")
  ── Error ('test-file_endings.R:7:5'): All files have a proper EOF ──────────────
  <callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
  Error: ! in callr subprocess.
  Caused by error in `create_golem(pkg_reload, open = FALSE)`:
  ! The package "usethis" (>= 1.6.0) is required to check the package name.
  Backtrace:
      ▆
   1. └─golem:::perform_inside_a_new_golem(...) at test-file_endings.R:7:5
   2.   └─a_callr_session$run(...) at tests/testthat/setup.R:67:3
   3.     └─callr:::rs_run(self, private, func, args, package)
   4.       └─throw(res$error)
  ── Error ('test-reload.R:30:3'): test document_and_reload ──────────────────────
  <callr_status_error/callr_error/rlib_error_3_0/rlib_error/error/condition>
  Error: ! in callr subprocess.
  Caused by error in `create_golem(pkg_reload, open = FALSE)`:
  ! The package "usethis" (>= 1.6.0) is required to check the package name.
  Backtrace:
      ▆
   1. └─golem:::perform_inside_a_new_golem(...) at test-reload.R:30:3
   2.   └─a_callr_session$run(...) at tests/testthat/setup.R:67:3
   3.     └─callr:::rs_run(self, private, func, args, package)
   4.       └─throw(res$error)
  ── Failure ('test-install_dev_deps.R:30:7'): install_dev_deps works ────────────
  rlang::is_installed(pak) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  Backtrace:
      ▆
   1. ├─withr::with_temp_libpaths(...) at test-install_dev_deps.R:2:3
   2. │ └─base::force(code)
   3. └─testthat::expect_true(rlang::is_installed(pak)) at test-install_dev_deps.R:30:7
  ── Failure ('test-install_dev_deps.R:30:7'): install_dev_deps works ────────────
  rlang::is_installed(pak) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  Backtrace:
      ▆
   1. ├─withr::with_temp_libpaths(...) at test-install_dev_deps.R:2:3
   2. │ └─base::force(code)
   3. └─testthat::expect_true(rlang::is_installed(pak)) at test-install_dev_deps.R:30:7
  ── Failure ('test-install_dev_deps.R:30:7'): install_dev_deps works ────────────
  rlang::is_installed(pak) is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  Backtrace:
      ▆
   1. ├─withr::with_temp_libpaths(...) at test-install_dev_deps.R:2:3
   2. │ └─base::force(code)
   3. └─testthat::expect_true(rlang::is_installed(pak)) at test-install_dev_deps.R:30:7
  
  [ FAIL 7 | WARN 8 | SKIP 6 | PASS 268 ]
  Error: Test failures
  Execution halted