- using R Under development (unstable) (2025-12-18 r89199)
- 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 ‘text2sdg/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘text2sdg’ version ‘1.1.2’
- 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 ‘text2sdg’ can be installed ... OK
See the install log for details.
- 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 ... [2s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/3s] OK
- checking whether the package can be unloaded cleanly ... [2s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/2s] OK
- checking loading without being on the library search path ... [2s/3s] 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 ... [12s/15s] OK
- checking Rd files ... [0s/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 ... [0s/1s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking R/sysdata.rda ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [2s/3s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [6s/8s] ERROR
Running ‘testthat.R’ [6s/8s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(text2sdg)
>
> test_check("text2sdg")
Running ElsevierSaving _problems/test-detect_sdg_systems-24.R
[ FAIL 1 | WARN 0 | SKIP 15 | PASS 11 ]
══ Skipped tests (15) ══════════════════════════════════════════════════════════
• On CRAN (15): 'test-crosstab_sdg.R:3:3', 'test-crosstab_sdg.R:19:3',
'test-crosstab_sdg.R:26:3', 'test-crosstab_sdg.R:34:3',
'test-crosstab_sdg.R:42:3', 'test-crosstab_sdg.R:51:3',
'test-crosstab_sdg.R:60:3', 'test-crosstab_sdg.R:67:3',
'test-crosstab_sdg.R:75:3', 'test-detect_any.R:59:3',
'test-detect_any.R:83:3', 'test-detect_any.R:103:3',
'test-detect_sdg_systems.R:39:3', 'test-ensemble.R:15:3',
'test-ensemble.R:37:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-detect_sdg_systems.R:24:3'): detect_sdg_systems returns a tibble ──
Error in ``[.data.table`(ql, , `:=`(n, add_n(t)), by = "i")`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. ├─text2sdg::detect_sdg_systems(test_text, system = "Elsevier") at test-detect_sdg_systems.R:24:3
2. │ └─text2sdg:::detect_elsevier(corpus, sdgs)
3. │ └─text2sdg:::search_corpus(corpus, elsevier_queries$query)
4. │ ├─... %>% tibble::as_tibble()
5. │ └─corpustools::search_features(corpus, queries, ...)
6. │ └─corpustools:::get_dict_results(...)
7. │ └─corpustools:::dictionary_lookup(...)
8. │ └─corpustools:::dictionary_lookup_tokens(...)
9. │ └─corpustools:::dictionary_lookup_tokens2(...)
10. │ └─corpustools:::collapse_dict(...)
11. │ └─corpustools:::expand_wildcards(sn, feature_levels)
12. │ ├─ql[, `:=`(n, add_n(t)), by = "i"]
13. │ └─data.table:::`[.data.table`(ql, , `:=`(n, add_n(t)), by = "i")
14. └─tibble::as_tibble(.)
[ FAIL 1 | WARN 0 | SKIP 15 | PASS 11 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [9s/9s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘text2sdg.Rmd’ using rmarkdown
Quitting from text2sdg.Rmd:77-85 [unnamed-chunk-5]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 2/2 in VECTOR_ELT
---
Backtrace:
▆
1. ├─text2sdg::detect_sdg_systems(...)
2. │ └─text2sdg:::detect_aurora(corpus, sdgs)
3. │ └─text2sdg:::search_corpus(corpus, aurora_simple$correct)
4. │ ├─... %>% tibble::as_tibble()
5. │ └─corpustools::search_features(corpus, queries, ...)
6. │ └─corpustools:::get_dict_results(...)
7. │ └─corpustools:::dictionary_lookup(...)
8. │ └─corpustools:::dictionary_lookup_tokens(...)
9. │ └─corpustools:::dictionary_lookup_tokens2(...)
10. │ └─corpustools:::collapse_dict(...)
11. │ └─corpustools:::expand_wildcards(sn, feature_levels)
12. │ ├─ql[, `:=`(n, add_n(t)), by = "i"]
13. │ └─data.table:::`[.data.table`(ql, , `:=`(n, add_n(t)), by = "i")
14. └─tibble::as_tibble(.)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'text2sdg.Rmd' failed with diagnostics:
attempt access index 2/2 in VECTOR_ELT
--- failed re-building ‘text2sdg.Rmd’
SUMMARY: processing the following file failed:
‘text2sdg.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [5s/7s] OK
- checking HTML version of manual ... [1s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs