- using R Under development (unstable) (2025-12-22 r89219)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
clang version 21.1.8
flang version 21.1.8
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘btw’ can be installed ... [18s/20s] OK
See the install log for details.
- 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 ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... OK
- checking whether startup messages can be suppressed ... 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 ... [36s/60s] OK
- checking Rd files ... [1s/16s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 ... [19s/27s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [152s/101s] ERROR
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
- checking PDF version of manual ... [10s/11s] OK
- checking HTML version of manual ... [8s/16s] OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR