* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/corpustools.Rcheck’ * using R Under development (unstable) (2025-12-20 r89211) * using platform: x86_64-pc-linux-gnu * R was compiled by gcc (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) GNU Fortran (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3) * running under: Fedora Linux 40 (Workstation Edition) * using session charset: UTF-8 * checking for file ‘corpustools/DESCRIPTION’ ... OK * this is package ‘corpustools’ version ‘0.5.2’ * 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 ‘corpustools’ can be installed ... [60s/57s] OK * used C++ compiler: ‘g++ (GCC) 14.2.1 20240912 (Red Hat 14.2.1-3)’ * 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 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 ... [20s/20s] 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 contents of ‘data’ directory ... OK * checking data for non-ASCII characters ... OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... ERROR Running examples in ‘corpustools-Ex.R’ failed The error most likely occurred in: > ### Name: export_span_annotations > ### Title: Export span annotations > ### Aliases: export_span_annotations > > ### ** Examples > > tc = create_tcorpus(sotu_texts, c('president','text'), doc_column='id', remember_spaces=TRUE) Error in `[.data.table`(tokens, , `:=`(start, 1 + c(0, head(cumsum(len), : attempt access index 5/5 in VECTOR_ELT Calls: create_tcorpus ... create_tcorpus.character -> tokenize_to_dataframe -> [ -> [.data.table Execution halted * checking examples with --run-donttest ... ERROR Running examples in ‘corpustools-Ex.R’ failed The error most likely occurred in: > ### Name: agg_tcorpus > ### Title: Aggregate the tokens data > ### Aliases: agg_tcorpus > > ### ** Examples > > ## No test: > tc = create_tcorpus(sotu_texts, doc_col='id') > > library(quanteda) Package version: 4.3.1 Unicode version: 15.1 ICU version: 74.2 Parallel computing: 2 of 32 threads used. See https://quanteda.io for tutorials and examples. > dict = data_dictionary_LSD2015 > dict = melt_quanteda_dict(dict) > dict$sentiment = ifelse(dict$code %in% c('positive','neg_negative'), 1, -1) > tc$code_dictionary(dict) Error in `[.data.table`(ql, , `:=`(n, add_n(t)), by = "i") : attempt access index 2/2 in VECTOR_ELT Calls: ... collapse_dict -> expand_wildcards -> [ -> [.data.table Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.r’ OK * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [17s/17s] ERROR Error(s) in re-building vignettes: ... --- re-building ‘corpustools.Rmd’ using rmarkdown Quitting from corpustools.Rmd:394-396 [unnamed-chunk-31] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `[.data.table`: ! attempt access index 2/2 in VECTOR_ELT --- Backtrace: ▆ 1. └─corpustools::search_features(tc, query = c("terror*", "war*")) 2. └─corpustools:::get_dict_results(...) 3. └─corpustools:::dictionary_lookup(...) 4. └─corpustools:::dictionary_lookup_tokens(...) 5. └─corpustools:::dictionary_lookup_tokens2(...) 6. └─corpustools:::collapse_dict(...) 7. └─corpustools:::expand_wildcards(sn, feature_levels) 8. ├─ql[, `:=`(n, add_n(t)), by = "i"] 9. └─data.table:::`[.data.table`(ql, , `:=`(n, add_n(t)), by = "i") ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'corpustools.Rmd' failed with diagnostics: attempt access index 2/2 in VECTOR_ELT --- failed re-building ‘corpustools.Rmd’ SUMMARY: processing the following file failed: ‘corpustools.Rmd’ Error: Vignette re-building failed. Execution halted * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * checking for new files in some other directories ... OK * DONE Status: 3 ERRORs See ‘/data/blackswan/ripley/R/packages/tests-devel/corpustools.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 2:44.28, 142.95 + 22.96