Running ‘testthat.R’ [152s/100s]
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(btw)
  > 
  > local_reproducible_output()
  > 
  > test_check("btw")
  Starting 2 test processes.
  Saving _problems/test-btw_this-1.R
  Saving _problems/test-tool-docs-1.R
  > test-tool-run.R: No personal access token (PAT) available.
  > test-tool-run.R: Obtain a PAT from here:
  > test-tool-run.R: https://github.com/settings/tokens
  > test-tool-run.R: For more on what to do with the PAT, see ?gh_whoami.
  [ FAIL 2 | WARN 1 | SKIP 49 | PASS 853 ]
  
  == Skipped tests (49) ==========================================================
  * On CRAN (32): 'test-btw.R:7:1', 'test-clipboard.R:1:1',
    'test-edit_btw_md.R:1:1', 'test-edit_btw_md.R:27:1',
    'test-edit_btw_md.R:46:1', 'test-edit_btw_md.R:64:1',
    'test-edit_btw_md.R:86:1', 'test-tool-env.R:15:1', 'test-tool-files.R:164:1',
    'test-tool-git.R:1:1', 'test-tool-git.R:67:1', 'test-tool-git.R:107:1',
    'test-tool-git.R:132:1', 'test-tool-git.R:166:1', 'test-tool-git.R:191:1',
    'test-tool-git.R:214:1', 'test-tool-git.R:345:1', 'test-tool-ide.R:1:1',
    'test-tool-pkg-devtools-covr.R:295:1', 'test-tool-search-packages.R:42:3',
    'test-tool-search-packages.R:55:3', 'test-tool-session-info.R:3:1',
    'test-tool-session-info.R:40:1', 'test-tool-web.R:23:3',
    'test-tool-web.R:54:3', 'test-tool-web.R:107:3', 'test-tool-web.R:128:3',
    'test-tool-web.R:164:3', 'test-tool-web.R:206:1', 'test-tool-web.R:229:3',
    'test-tool-run.R:108:1', 'test-utils-md.R:1:1'
  * On Linux (17): 'test-btw.R:2:3', 'test-btw_client.R:29:5',
    'test-btw_client.R:99:3', 'test-btw_client.R:253:5',
    'test-btw_client.R:264:5', 'test-btw_client.R:346:5',
    'test-btw_client.R:385:5', 'test-tool-env-df.R:1:1', 'test-tool-env.R:2:3',
    'test-tool-files.R:19:3', 'test-tool-files.R:79:3', 'test-tool-ide.R:177:3',
    'test-tool-ide.R:199:3', 'test-tool-docs-news.R:148:3',
    'test-tool-search-packages.R:23:3', 'test-tool-search-packages.R:72:3',
    'test-utils.R:7:3'
  
  == Failed tests ================================================================
  -- Error ('test-btw_this.R:1:1'): (code run outside of `test_that()`) ----------
  Error in `httr2::resp_body_json(response)`: Unexpected content type "text/html".
  * Expecting type "application/json" or suffix "json".
  Backtrace:
       x
    1. \-btw:::use_latest_pandoc() at test-btw_this.R:1:1
    2.   +-base::suppressMessages(pandoc::pandoc_available_releases()[1]) at ./helpers.R:10:5
    3.   | \-base::withCallingHandlers(...)
    4.   \-pandoc::pandoc_available_releases()
    5.     \-pandoc:::pandoc_releases()
    6.       +-rlang::env_cache(the, "pandoc_releases", default_cache())
    7.       | \-rlang::env_poke(env, nm, default)
    8.       \-pandoc (local) default_cache()
    9.         \-pandoc:::fetch_gh_releases()
   10.           \-gh::gh(...)
   11.             \-gh::gh_next(res, .token = .token, .send_headers = .send_headers)
   12.               \-gh:::gh_link(gh_response, "next", .token = .token, .send_headers = .send_headers)
   13.                 \-gh:::gh_make_request(req)
   14.                   \-gh:::gh_error(resp, gh_req = x, error_call = error_call)
   15.                     \-httr2::resp_body_json(response)
   16.                       \-httr2::resp_check_content_type(...)
   17.                         \-httr2:::check_content_type(...)
   18.                           \-cli::cli_abort(...)
   19.                             \-rlang::abort(...)
  -- Error ('test-tool-docs.R:1:1'): (code run outside of `test_that()`) ---------
  Error in `httr2::resp_body_json(response)`: Unexpected content type "text/html".
  * Expecting type "application/json" or suffix "json".
  Backtrace:
       x
    1. \-btw:::use_latest_pandoc() at test-tool-docs.R:1:1
    2.   +-base::suppressMessages(pandoc::pandoc_available_releases()[1]) at ./helpers.R:10:5
    3.   | \-base::withCallingHandlers(...)
    4.   \-pandoc::pandoc_available_releases()
    5.     \-pandoc:::pandoc_releases()
    6.       +-rlang::env_cache(the, "pandoc_releases", default_cache())
    7.       | \-rlang::env_poke(env, nm, default)
    8.       \-pandoc (local) default_cache()
    9.         \-pandoc:::fetch_gh_releases()
   10.           \-gh::gh(...)
   11.             \-gh::gh_next(res, .token = .token, .send_headers = .send_headers)
   12.               \-gh:::gh_link(gh_response, "next", .token = .token, .send_headers = .send_headers)
   13.                 \-gh:::gh_make_request(req)
   14.                   \-gh:::gh_error(resp, gh_req = x, error_call = error_call)
   15.                     \-httr2::resp_body_json(response)
   16.                       \-httr2::resp_check_content_type(...)
   17.                         \-httr2:::check_content_type(...)
   18.                           \-cli::cli_abort(...)
   19.                             \-rlang::abort(...)
  
  [ FAIL 2 | WARN 1 | SKIP 49 | PASS 853 ]
  Error:
  ! Test failures.
  Execution halted
  Ran 8/8 deferred expressions