* using log directory 'd:/Rcompile/CRANpkg/local/4.5/btw.Rcheck' * using R version 4.5.2 (2025-10-31 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'btw/DESCRIPTION' ... OK * this is package 'btw' version '1.1.0' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'btw' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] OK * checking whether startup messages can be suppressed ... [1s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [11s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... [16s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [143s] ERROR Running 'testthat.R' [143s] 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 > 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. > test-tool-run.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_23_01_50_00_7003/Rtmpa4jFOB/file15b9c316f59df". Did you mean command "preview"? > test-tool-run.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_23_01_50_00_7003/Rtmpa4jFOB/file15b9c3b2d7ddb". Did you mean command "preview"? > test-tool-run.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_23_01_50_00_7003/Rtmpa4jFOB/file15b9c7eb3390f". Did you mean command "preview"? > test-tool-run.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_23_01_50_00_7003/Rtmpa4jFOB/file15b9cb77711d". Did you mean command "preview"? > test-tool-run.R: ERROR: Unknown command "TMPDIR=D:/temp/2025_12_23_01_50_00_7003/Rtmpa4jFOB/file15b9c512c6ae5". Did you mean command "preview"? > 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. [ FAIL 1 | WARN 1 | SKIP 54 | PASS 882 ] == Skipped tests (54) ========================================================== * On CRAN (36): '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-run.R:108: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-docs.R:22:1', 'test-tool-docs.R:30:3', 'test-tool-docs.R:57:3', 'test-tool-docs.R:75:1', 'test-utils-md.R:1: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:253:5', 'test-btw_client.R:264:5', 'test-btw_client.R:346:5', 'test-btw_client.R:385:5', 'test-tool-docs-news.R:148:3', '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-search-packages.R:23:3', 'test-tool-search-packages.R:72:3', 'test-tool-docs.R:18: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(...) [ FAIL 1 | WARN 1 | SKIP 54 | PASS 882 ] Error: ! Test failures. Execution halted Ran 8/8 deferred expressions * checking PDF version of manual ... [21s] OK * checking HTML version of manual ... [8s] OK * DONE Status: 1 ERROR