- using R Under development (unstable) (2025-07-24 r88447)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
GNU Fortran (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘chattr/DESCRIPTION’ ... OK
- this is package ‘chattr’ version ‘0.3.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 ‘chattr’ can be installed ... [10s/13s] OK
See the install log for details.
- checking package directory ... OK
- checking ‘build’ 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 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 ... [14s/17s] OK
- checking Rd files ... 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [13s/20s] ERROR
Running ‘testthat.R’ [13s/20s]
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/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> library(testthat)
> library(chattr)
> library(shiny)
>
> test_check("chattr")
Enter file name: Enter file name: [ FAIL 1 | WARN 2 | SKIP 26 | PASS 38 ]
══ Skipped tests (26) ══════════════════════════════════════════════════════════
• On CRAN (26): 'test-app-server.R:30:3', 'test-app-server.R:48:3',
'test-app-ui.R:2:3', 'test-app-ui.R:12:3', 'test-app-ui.R:17:3',
'test-app-ui.R:24:3', 'test-backend-databricks.R:20:3',
'test-backend-ellmer.R:22:3', 'test-backend-openai.R:2:3',
'test-backend-openai.R:12:3', 'test-ch-defaults-save.R:3:3',
'test-ch_context.R:2:3', 'test-ch_context.R:12:3', 'test-ch_defaults.R:2:3',
'test-ch_defaults.R:9:3', 'test-ch_defaults.R:19:3',
'test-chattr-defaults.R:3:3', 'test-chattr-test.R:4:3',
'test-chattr-test.R:17:3', 'test-chattr-use.R:7:7', 'test-chattr-use.R:47:7',
'test-chattr-use.R:53:3', 'test-chattr-use.R:75:3', 'test-chattr-use.R:83:7',
'test-utils.R:6:3', 'test-utils.R:20:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-backend-ellmer.R:41:3'): Ellmer history works ──────────────────
<purrr_error_indexed/rlang_error/error/condition>
Error in `map(x, ~{
ellmer::Turn(role = .x$role, contents = list(ellmer::ContentText(.x$content)),
tokens = .x$tokens %||% c(0, 0))
})`: i In index: 1.
Caused by error:
! <ellmer::Turn> object properties are invalid:
- @tokens must be length three
Backtrace:
▆
1. ├─testthat::expect_silent(...) at test-backend-ellmer.R:41:3
2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
3. │ ├─testthat (local) .capture(...)
4. │ │ ├─withr::with_output_sink(...)
5. │ │ │ └─base::force(code)
6. │ │ ├─base::withCallingHandlers(...)
7. │ │ └─base::withVisible(code)
8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
9. ├─chattr:::ch_ellmer_history(list(list(role = "user", contents = "this is a test")))
10. │ └─purrr::map(...)
11. │ └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
12. │ ├─purrr:::with_indexed_errors(...)
13. │ │ └─base::withCallingHandlers(...)
14. │ ├─purrr:::call_with_cleanup(...)
15. │ └─chattr (local) .f(.x[[i]], ...)
16. │ └─ellmer::Turn(...)
17. │ └─S7::new_object(...)
18. │ └─S7::validate(object, recursive = !parent_validated)
19. │ └─base::stop(msg, call. = FALSE)
20. └─base::.handleSimpleError(...)
21. └─purrr (local) h(simpleError(msg, call))
22. └─cli::cli_abort(...)
23. └─rlang::abort(...)
[ FAIL 1 | WARN 2 | SKIP 26 | PASS 38 ]
Deleting unused snapshots:
• app-server/001.json
• app-server/002.json
• app-server/003.json
Error: Test failures
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [23s/29s] OK
- checking PDF version of manual ... [8s/11s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR