- using R Under development (unstable) (2025-12-21 r89216)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 21.1.7 (1)
Debian flang version 21.1.7 (1)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘sentopics/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘sentopics’ version ‘0.7.6’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] 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 ‘sentopics’ can be installed ... OK
See the install log for details.
- used C++ compiler: ‘Debian clang version 21.1.7 (1)’
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [3s/5s] OK
- checking whether the package can be loaded with stated dependencies ... [3s/5s] OK
- checking whether the package can be unloaded cleanly ... [3s/5s] OK
- checking whether the namespace can be loaded with stated dependencies ... [3s/4s] OK
- checking whether the namespace can be unloaded cleanly ... [3s/5s] OK
- checking loading without being on the library search path ... [3s/5s] OK
- checking whether startup messages can be suppressed ... [3s/4s] 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 ... [28s/35s] OK
- checking Rd files ... [1s/1s] 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 ... [3s/5s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking line endings in Makefiles ... OK
- checking compilation flags in Makevars ... OK
- checking for GNU extensions in Makefiles ... OK
- checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
- checking use of PKG_*FLAGS in Makefiles ... OK
- checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [39s/49s] ERROR
Running examples in ‘sentopics-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: topWords
> ### Title: Extract the most representative words from topics
> ### Aliases: topWords plot_topWords
>
> ### ** Examples
>
> model <- LDA(ECB_press_conferences_tokens)
> model <- fit(model, 10)
0% 10 20 30 40 50 60 70 80 90 100%
[----|----|----|----|----|----|----|----|----|----|
**************************************************|
> topWords(model)
topic word value[frequency] overall
<fctr> <char> <int> <num>
1: topic1 price 2098 2155
2: topic1 risk 1290 1374
3: topic1 development 1196 1583
4: topic1 inflation 925 1737
5: topic1 price_stability 873 1047
6: topic1 increase 625 674
7: topic1 outlook 625 868
8: topic1 euro_area 566 3169
9: topic1 pressure 546 684
10: topic1 oil 518 542
11: topic2 monetary 1262 1569
12: topic2 governing_council 921 1514
13: topic2 ecb 796 975
14: topic2 interest_rate 556 804
15: topic2 meeting 532 550
16: topic2 monetary_policy 448 1093
17: topic2 inflation 443 1737
18: topic2 outcome 403 418
19: topic2 money 397 415
20: topic2 president 358 358
21: topic3 fiscal 952 960
22: topic3 country 748 753
23: topic3 policy 716 813
24: topic3 euro_area 712 3169
25: topic3 growth 582 3424
26: topic3 reform 573 647
27: topic3 structural 541 594
28: topic3 market 442 1296
29: topic3 measure 340 861
30: topic3 european 328 336
31: topic4 euro_area 1370 3169
32: topic4 growth 1102 3424
33: topic4 economic 754 2018
34: topic4 real 698 726
35: topic4 quarter 692 903
36: topic4 projection 550 555
37: topic4 gdp 513 523
38: topic4 economy 413 830
39: topic4 staff 387 419
40: topic4 recovery 374 614
41: topic5 growth 1171 3424
42: topic5 rate 977 1355
43: topic5 annual 880 1268
44: topic5 loan 825 832
45: topic5 financial 797 1204
46: topic5 credit 550 705
47: topic5 euro_area 507 3169
48: topic5 sector 484 735
49: topic5 bank 481 722
50: topic5 household 412 420
topic word value[frequency] overall
> topWords(model, output = "matrix")
topic1 topic2 topic3 topic4
[1,] "price" "monetary" "fiscal" "euro_area"
[2,] "risk" "governing_council" "country" "growth"
[3,] "development" "ecb" "policy" "economic"
[4,] "inflation" "interest_rate" "euro_area" "real"
[5,] "price_stability" "meeting" "growth" "quarter"
[6,] "increase" "monetary_policy" "reform" "projection"
[7,] "outlook" "inflation" "structural" "gdp"
[8,] "euro_area" "outcome" "market" "economy"
[9,] "pressure" "money" "measure" "staff"
[10,] "oil" "president" "european" "recovery"
topic5
[1,] "growth"
[2,] "rate"
[3,] "annual"
[4,] "loan"
[5,] "financial"
[6,] "credit"
[7,] "euro_area"
[8,] "sector"
[9,] "bank"
[10,] "household"
> topWords(model, method = "FREX")
Error in `[.data.table`(phiStats, , `:=`("exclusivity", value/sum(value)), :
attempt access index 4/4 in VECTOR_ELT
Calls: topWords -> topWords_dt -> [ -> [.data.table
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
plot.sentopicmodel 6.776 0.413 4.820
LDAvis 5.093 0.325 3.562
chainsScores 2.614 0.120 9.471
fit.sentopicmodel 1.707 0.162 11.885
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [163s/181s] ERROR
Running ‘testthat.R’ [163s/180s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library("testthat")
> library("sentopics")
>
> # For solving 'Examples with CPU time > 2.5 times elapsed time'
> Sys.setenv("OMP_THREAD_LIMIT" = 2)
>
> if (Sys.getenv("R_COVR") != "true") {
+ test_check("sentopics")
+ } else {
+ test_check("sentopics", reporter = default_reporter())
+ # test_check("sentopics", reporter = LocationReporter)
+ }
0% 10 20 30 40 50 60 70 80 90 100%
[----|----|----|----|----|----|----|----|----|----|
**************************************************|
0% 10 20 30 40 50 60 70 80 90 100%
[----|----|----|----|----|----|----|----|----|----|
**************************************************|
0% 10 20 30 40 50 60 70 80 90 100%
[----|----|----|----|----|----|----|----|----|----|
**************************************************|
0% 10 20 30 40 50 60 70 80 90 100%
[----|----|----|----|----|----|----|----|----|----|
**************************************************|
[ FAIL 1 | WARN 0 | SKIP 1 | PASS 342 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• On CRAN (1): 'test-parallel_chains.R:97:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-basic.R:66:3'): topWords methods works ─────────────────────────
Error in ``[.data.table`(phiStats, , `:=`("exclusivity", value/sum(value)), by = word)`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_silent(tops <- topWords(sentopicmodel, method = "FREX")) at test-basic.R:66: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. └─sentopics::topWords(sentopicmodel, method = "FREX")
10. └─sentopics:::topWords_dt(x, nWords, method, w)
11. ├─phiStats[, `:=`("exclusivity", value/sum(value)), by = word]
12. └─data.table:::`[.data.table`(...)
[ FAIL 1 | WARN 0 | SKIP 1 | PASS 342 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [91s/54s] OK
- checking PDF version of manual ... [6s/8s] OK
- checking HTML version of manual ... [4s/6s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs