* using log directory ‘/srv/hornik/tmp/CRAN_pretest/newsmap.Rcheck’ * using R Under development (unstable) (2025-07-09 r88393) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 19.1.7 (3) Debian flang-new version 19.1.7 (3) * running under: Debian GNU/Linux 13 (trixie) * using session charset: UTF-8 * checking for file ‘newsmap/DESCRIPTION’ ... OK * checking extension type ... Package * this is package ‘newsmap’ version ‘0.9.2’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [4s/5s] OK * 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 ‘newsmap’ can be installed ... [4s/4s] OK * checking package directory ... OK * checking for future file timestamps ... 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/1s] OK * checking whether the package can be loaded with stated dependencies ... [1s/1s] OK * checking whether the package can be unloaded cleanly ... [1s/1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK * checking whether the namespace can be unloaded cleanly ... [1s/1s] OK * checking loading without being on the library search path ... [1s/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 ... [6s/6s] OK * checking Rd files ... [0s/0s] 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 contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... [1s/1s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... [2s/2s] OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [10s/10s] ERROR Running ‘testthat.R’ [10s/9s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > require(testthat) Loading required package: testthat > test_check("newsmap") Loading required package: newsmap [ FAIL 2 | WARN 0 | SKIP 0 | PASS 147 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-textmodel.R:238:5'): coef() and dictionary() are working ───── `coef(map, select = character())` threw an error with unexpected message. Expected match: "The length of select must be between 1 and 17" Actual message: "The length of select must be between 1 and 16\n" Backtrace: ▆ 1. ├─testthat::expect_error(coef(map, select = character()), "The length of select must be between 1 and 17") at test-textmodel.R:238:5 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. ├─stats::coef(map, select = character()) 7. └─newsmap:::coef.textmodel_newsmap(map, select = character()) 8. └─quanteda::check_character(...) 9. └─quanteda:::check_length(x, min_len, max_len, arg) ── Failure ('test-textmodel.R:243:5'): coef() and dictionary() are working ───── length(lis1) not equal to 17. 1/1 mismatches [1] 16 - 17 == -1 [ FAIL 2 | WARN 0 | SKIP 0 | PASS 147 ] Error: Test failures Execution halted * checking PDF version of manual ... [3s/2s] OK * checking HTML version of manual ... [0s/0s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR