Running 'testthat.R' [132s]
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.
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c886f232137". Did you mean command "render"?
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c8856aa1ee0". Did you mean command "update"?
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c88a0f371d". Did you mean command "render"?
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c883e1478d". Did you mean command "render"?
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c885a777ff0". Did you mean command "render"?
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c881d7576ff". Did you mean command "render"?
  > test-btw_client.R: Using gpt-4o from OpenAI.
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c8843f23017". Did you mean command "render"?
  > test-btw_client.R: Using gpt-4o from OpenAI.
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c8832de7621". Did you mean command "render"?
  > test-btw_client.R: Using gpt-4o from OpenAI.
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c88201148f5". Did you mean command "render"?
  > test-btw_client.R: Using gpt-4o from OpenAI.
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c886fbc6fee". Did you mean command "render"?
  > test-btw_client.R: Using gpt-4o from OpenAI.
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c886b1d5e7d". Did you mean command "render"?
  > test-btw_client.R: Using gpt-4o from OpenAI.
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c8878144579". Did you mean command "render"?
  > test-btw_client.R: Using gpt-4o from OpenAI.
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c885b08443a". Did you mean command "render"?
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c88683a5832". Did you mean command "render"?
  > test-btw_client.R: Using claude-3-5-sonnet-20241022 from Anthropic.
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c882fb34a97". Did you mean command "render"?
  > test-btw_client.R: Using gpt-4o from OpenAI.
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c88793734a0". Did you mean command "render"?
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c885cf1e82". Did you mean command "render"?
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c8813103abd". Did you mean command "render"?
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c883ce21525". Did you mean command "render"?
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c88668cf7". Did you mean command "render"?
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c88d8a14a2". Did you mean command "render"?
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c88907b3c". Did you mean command "render"?
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c88140ee33". Did you mean command "render"?
  > test-btw_client.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c88194af58". Did you mean command "render"?
  > test-edit_btw_md.R: v Setting active project to
  > test-edit_btw_md.R:   "D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c88578e5814".
  > test-edit_btw_md.R: v Setting active project to "<no active project>".
  > test-edit_btw_md.R: v Setting active project to
  > test-edit_btw_md.R:   "D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c88127a32d9".
  > test-edit_btw_md.R: v Setting active project to "<no active project>".
  Saving _problems/test-btw_this-1.R
  > test-tool-docs.R: i Installing Pandoc release 3.8.3
  > test-tool-docs.R:   Downloading bundle...
  > test-tool-docs.R: v Pandoc version 3.8.3 installed.
  > test-tool-sessioninfo.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c8845056415". Did you mean command "render"?
  > test-tool-sessioninfo.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c8817f0792c". Did you mean command "render"?
  > test-tool-sessioninfo.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c88494129b6". Did you mean command "render"?
  > test-tool-sessioninfo.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c883a687894". Did you mean command "render"?
  > test-tool-web.R:   [Retry 2/5] with_retry() works
  > test-tool-web.R:   [Retry 3/5] with_retry() works
  > test-tool-sessioninfo.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c8819f65c0f". Did you mean command "render"?
  > test-tool-sessioninfo.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c88353854d1". Did you mean command "render"?
  > test-tool-sessioninfo.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c8818783b22". Did you mean command "render"?
  > test-tool-sessioninfo.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_22_01_50_00_19769/Rtmp6ZXgSd/file11c884b782de8". Did you mean command "render"?
  [ FAIL 1 | WARN 1 | SKIP 52 | PASS 601 ]
  
  == Skipped tests (52) ==========================================================
  * On CRAN (34): '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:43:1', 'test-edit_btw_md.R:61:1',
    'test-edit_btw_md.R:79:1', 'test-tool-environment.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:343:1',
    'test-tool-docs.R:22:1', 'test-tool-docs.R:30:3', 'test-tool-docs.R:57:3',
    'test-tool-docs.R:75:1', 'test-tool-search-packages.R:42:3',
    'test-tool-search-packages.R:55:3', 'test-tool-rstudioapi.R:1:1',
    'test-tool-web.R:19:3', 'test-tool-web.R:68:3', 'test-tool-web.R:113:3',
    'test-tool-web.R:134:3', 'test-tool-web.R:170:3', 'test-tool-web.R:212:1',
    'test-tool-web.R:231:3', 'test-utils-md.R:1:1',
    'test-tool-sessioninfo.R:1:1', 'test-tool-sessioninfo.R:38:1'
  * On Windows (18): 'test-btw.R:2:3', 'test-btw_client.R:29:5',
    'test-btw_client.R:99:3', 'test-btw_client.R:203:5',
    'test-btw_client.R:214:5', 'test-btw_client.R:296:5',
    'test-btw_client.R:335:5', 'test-tool-data-frame.R:1:1',
    'test-tool-docs-news.R:148:3', 'test-tool-environment.R:2:3',
    'test-tool-files.R:19:3', 'test-tool-files.R:79:3', 'test-tool-docs.R:18:3',
    'test-tool-search-packages.R:23:3', 'test-tool-search-packages.R:72:3',
    'test-tool-rstudioapi.R:179:3', 'test-tool-rstudioapi.R:201: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_make_request(req)
   12.               \-gh:::gh_error(resp, gh_req = x, error_call = error_call)
   13.                 \-httr2::resp_body_json(response)
   14.                   \-httr2::resp_check_content_type(...)
   15.                     \-httr2:::check_content_type(...)
   16.                       \-cli::cli_abort(...)
   17.                         \-rlang::abort(...)
  
  [ FAIL 1 | WARN 1 | SKIP 52 | PASS 601 ]
  Error:
  ! Test failures.
  Execution halted
  Ran 8/8 deferred expressions