* using log directory 'd:/Rcompile/CRANpkg/local/4.4/chattr.Rcheck' * using R version 4.4.3 (2025-02-28 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'chattr' can be installed ... OK * checking installed package size ... OK * 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 ... [2s] 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 ... [2s] OK * checking loading without being on the library search path ... [2s] 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 ... [7s] 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [4s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [18s] ERROR Running 'testthat.R' [18s] 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") [ FAIL 1 | WARN 0 | SKIP 27 | PASS 34 ] ══ Skipped tests (27) ══════════════════════════════════════════════════════════ • On CRAN (25): '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' • On Windows (2): 'test-app-server.R:2:3', 'test-app-server.R:29:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-backend-ellmer.R:41:3'): Ellmer history works ────────────────── 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: ! 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 0 | SKIP 27 | PASS 34 ] 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 ... [8s] OK * checking PDF version of manual ... [22s] OK * checking HTML version of manual ... [1s] OK * DONE Status: 1 ERROR