* using log directory ‘/data/blackswan/ripley/R/packages/tests-devel/conversim.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 ‘conversim/DESCRIPTION’ ... OK * this is package ‘conversim’ version ‘0.1.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 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 ‘conversim’ can be installed ... [10s/11s] 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 ... 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 ... [15s/15s] 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 installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... ERROR Running examples in ‘conversim-Ex.R’ failed The error most likely occurred in: > ### Name: sent_sim_seq > ### Title: Calculate sentiment similarity sequence for a single dyad > ### Aliases: sent_sim_seq > > ### ** Examples > > conversation <- data.frame( + processed_text = c("I love this movie!", "It's really amazing.", + "The acting is superb.", "I couldn't agree more.") + ) > result <- sent_sim_seq(conversation, window_size = 2) Error in `[.data.table`(dat, , `:=`(indx, wc < 1), by = c("id", "sentences", : attempt access index 3/3 in VECTOR_ELT Calls: sent_sim_seq ... similarity_func -> sentiment_by -> sentiment_by.character Execution halted * checking examples with --run-donttest ... ERROR Running examples in ‘conversim-Ex.R’ failed The error most likely occurred in: > ### Name: gen_sim_report > ### Title: Generate similarity report > ### Aliases: gen_sim_report > > ### ** Examples > > ## No test: > speech1 <- "This is the first speech. It talks about important topics." > speech2 <- "This is the second speech. It covers similar subjects." > report <- gen_sim_report(speech1, speech2) Error in `[.data.table`(dat, , `:=`(indx, wc < 1), by = c("id", "sentences", : attempt access index 3/3 in VECTOR_ELT Calls: gen_sim_report ... sentiment_similarity -> sentiment_by -> sentiment_by.character Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ ERROR 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/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(conversim) > > test_check("conversim") boundary (singular) fit: see help('isSingular') Saving _problems/test-conversation_multidyads-77.R Loading required package: NLP Attaching package: 'NLP' The following object is masked from 'package:ggplot2': annotate Saving _problems/test-conversation_sequence-73.R Loading required package: SnowballC Saving _problems/test-main_functions-81.R Saving _problems/test-main_functions_utilities-36.R Saving _problems/test-main_functions_utilities-54.R Saving _problems/test-main_functions_utilities-70.R [ FAIL 6 | WARN 11 | SKIP 0 | PASS 141 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-conversation_multidyads.R:77:3'): sentiment_sim_dyads works correctly ── Error in ``[.data.table`(dat, , `:=`(indx, wc < 1), by = c("id", "sentences", "wc"))`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. └─conversim::sentiment_sim_dyads(preprocessed, window_size = 2) at test-conversation_multidyads.R:77:3 2. └─conversim::sentiment_similarity(window1, window2) 3. ├─sentimentr::sentiment_by(conv1) 4. └─sentimentr:::sentiment_by.character(conv1) 5. ├─base::suppressWarnings(sentiment(text.var = text.var, ...)) 6. │ └─base::withCallingHandlers(...) 7. ├─sentimentr::sentiment(text.var = text.var, ...) 8. └─sentimentr:::sentiment.character(text.var = text.var, ...) 9. ├─sentimentr::sentiment(...) 10. └─sentimentr:::sentiment.get_sentences_character(...) 11. └─sentimentr:::make_sentence_df2(sents, retention_regex = retention_regex) 12. ├─dat[, `:=`(indx, wc < 1), by = c("id", "sentences", "wc")] 13. └─data.table:::`[.data.table`(...) ── Error ('test-conversation_sequence.R:73:3'): sent_sim_seq works correctly ─── Error in ``[.data.table`(dat, , `:=`(indx, wc < 1), by = c("id", "sentences", "wc"))`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. └─conversim::sent_sim_seq(sample_conversation, window_size = 3) at test-conversation_sequence.R:73:3 2. └─conversim::calc_sim_seq(conversation, window_size, conversim::sentiment_similarity) 3. └─conversim (local) similarity_func(window1, window2) 4. ├─sentimentr::sentiment_by(conv1) 5. └─sentimentr:::sentiment_by.character(conv1) 6. ├─base::suppressWarnings(sentiment(text.var = text.var, ...)) 7. │ └─base::withCallingHandlers(...) 8. ├─sentimentr::sentiment(text.var = text.var, ...) 9. └─sentimentr:::sentiment.character(text.var = text.var, ...) 10. ├─sentimentr::sentiment(...) 11. └─sentimentr:::sentiment.get_sentences_character(...) 12. └─sentimentr:::make_sentence_df2(sents, retention_regex = retention_regex) 13. ├─dat[, `:=`(indx, wc < 1), by = c("id", "sentences", "wc")] 14. └─data.table:::`[.data.table`(...) ── Error ('test-main_functions.R:81:3'): sentiment_similarity works correctly ── Error in ``[.data.table`(dat, , `:=`(indx, wc < 1), by = c("id", "sentences", "wc"))`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. └─conversim::sentiment_similarity(conv1, conv2) at test-main_functions.R:81:3 2. ├─sentimentr::sentiment_by(conv1) 3. └─sentimentr:::sentiment_by.character(conv1) 4. ├─base::suppressWarnings(sentiment(text.var = text.var, ...)) 5. │ └─base::withCallingHandlers(...) 6. ├─sentimentr::sentiment(text.var = text.var, ...) 7. └─sentimentr:::sentiment.character(text.var = text.var, ...) 8. ├─sentimentr::sentiment(...) 9. └─sentimentr:::sentiment.get_sentences_character(...) 10. └─sentimentr:::make_sentence_df2(sents, retention_regex = retention_regex) 11. ├─dat[, `:=`(indx, wc < 1), by = c("id", "sentences", "wc")] 12. └─data.table:::`[.data.table`(...) ── Error ('test-main_functions_utilities.R:36:3'): gen_sim_report generates a valid report ── Error in ``[.data.table`(dat, , `:=`(indx, wc < 1), by = c("id", "sentences", "wc"))`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. └─conversim::gen_sim_report(speech1, speech2) at test-main_functions_utilities.R:36:3 2. └─conversim::sentiment_similarity(speech1, speech2) 3. ├─sentimentr::sentiment_by(conv1) 4. └─sentimentr:::sentiment_by.character(conv1) 5. ├─base::suppressWarnings(sentiment(text.var = text.var, ...)) 6. │ └─base::withCallingHandlers(...) 7. ├─sentimentr::sentiment(text.var = text.var, ...) 8. └─sentimentr:::sentiment.character(text.var = text.var, ...) 9. ├─sentimentr::sentiment(...) 10. └─sentimentr:::sentiment.get_sentences_character(...) 11. └─sentimentr:::make_sentence_df2(sents, retention_regex = retention_regex) 12. ├─dat[, `:=`(indx, wc < 1), by = c("id", "sentences", "wc")] 13. └─data.table:::`[.data.table`(...) ── Error ('test-main_functions_utilities.R:54:3'): print_sim_report works without errors ── Error in ``[.data.table`(dat, , `:=`(indx, wc < 1), by = c("id", "sentences", "wc"))`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. └─conversim::gen_sim_report(speech1, speech2) at test-main_functions_utilities.R:54:3 2. └─conversim::sentiment_similarity(speech1, speech2) 3. ├─sentimentr::sentiment_by(conv1) 4. └─sentimentr:::sentiment_by.character(conv1) 5. ├─base::suppressWarnings(sentiment(text.var = text.var, ...)) 6. │ └─base::withCallingHandlers(...) 7. ├─sentimentr::sentiment(text.var = text.var, ...) 8. └─sentimentr:::sentiment.character(text.var = text.var, ...) 9. ├─sentimentr::sentiment(...) 10. └─sentimentr:::sentiment.get_sentences_character(...) 11. └─sentimentr:::make_sentence_df2(sents, retention_regex = retention_regex) 12. ├─dat[, `:=`(indx, wc < 1), by = c("id", "sentences", "wc")] 13. └─data.table:::`[.data.table`(...) ── Error ('test-main_functions_utilities.R:70:3'): print_sim_report prints all similarity scores ── Error in ``[.data.table`(dat, , `:=`(indx, wc < 1), by = c("id", "sentences", "wc"))`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. └─conversim::gen_sim_report(speech1, speech2) at test-main_functions_utilities.R:70:3 2. └─conversim::sentiment_similarity(speech1, speech2) 3. ├─sentimentr::sentiment_by(conv1) 4. └─sentimentr:::sentiment_by.character(conv1) 5. ├─base::suppressWarnings(sentiment(text.var = text.var, ...)) 6. │ └─base::withCallingHandlers(...) 7. ├─sentimentr::sentiment(text.var = text.var, ...) 8. └─sentimentr:::sentiment.character(text.var = text.var, ...) 9. ├─sentimentr::sentiment(...) 10. └─sentimentr:::sentiment.get_sentences_character(...) 11. └─sentimentr:::make_sentence_df2(sents, retention_regex = retention_regex) 12. ├─dat[, `:=`(indx, wc < 1), by = c("id", "sentences", "wc")] 13. └─data.table:::`[.data.table`(...) [ FAIL 6 | WARN 11 | SKIP 0 | PASS 141 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [34s/35s] ERROR Error(s) in re-building vignettes: ... --- re-building ‘Analyzing_Similarities_between_Two_Long_Speeches.Rmd’ using rmarkdown Quitting from Analyzing_Similarities_between_Two_Long_Speeches.Rmd:339-343 [unnamed-chunk-14] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `[.data.table`: ! attempt access index 3/3 in VECTOR_ELT --- Backtrace: ▆ 1. └─global sentiment_similarity(speeches_data$text[1], speeches_data$text[2]) 2. ├─sentimentr::sentiment_by(conv1) 3. └─sentimentr:::sentiment_by.character(conv1) 4. ├─base::suppressWarnings(sentiment(text.var = text.var, ...)) 5. │ └─base::withCallingHandlers(...) 6. ├─sentimentr::sentiment(text.var = text.var, ...) 7. └─sentimentr:::sentiment.character(text.var = text.var, ...) 8. ├─sentimentr::sentiment(...) 9. └─sentimentr:::sentiment.get_sentences_character(...) 10. └─sentimentr:::make_sentence_df2(sents, retention_regex = retention_regex) 11. ├─dat[, `:=`(indx, wc < 1), by = c("id", "sentences", "wc")] 12. └─data.table:::`[.data.table`(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'Analyzing_Similarities_between_Two_Long_Speeches.Rmd' failed with diagnostics: attempt access index 3/3 in VECTOR_ELT --- failed re-building ‘Analyzing_Similarities_between_Two_Long_Speeches.Rmd’ --- re-building ‘Analyzing_Similarities_in_Conversational_Sequence_in_One_Dyad.Rmd’ using rmarkdown Quitting from Analyzing_Similarities_in_Conversational_Sequence_in_One_Dyad.Rmd:378-391 [sentiment_similarity] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `[.data.table`: ! attempt access index 3/3 in VECTOR_ELT --- Backtrace: ▆ 1. └─global sent_sim_seq(conversation, window_size = 3) 2. └─global calc_sim_seq(conversation, window_size, conversim::sentiment_similarity) 3. └─conversim (local) similarity_func(window1, window2) 4. ├─sentimentr::sentiment_by(conv1) 5. └─sentimentr:::sentiment_by.character(conv1) 6. ├─base::suppressWarnings(sentiment(text.var = text.var, ...)) 7. │ └─base::withCallingHandlers(...) 8. ├─sentimentr::sentiment(text.var = text.var, ...) 9. └─sentimentr:::sentiment.character(text.var = text.var, ...) 10. ├─sentimentr::sentiment(...) 11. └─sentimentr:::sentiment.get_sentences_character(...) 12. └─sentimentr:::make_sentence_df2(sents, retention_regex = retention_regex) 13. ├─dat[, `:=`(indx, wc < 1), by = c("id", "sentences", "wc")] 14. └─data.table:::`[.data.table`(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'Analyzing_Similarities_in_Conversational_Sequence_in_One_Dyad.Rmd' failed with diagnostics: attempt access index 3/3 in VECTOR_ELT --- failed re-building ‘Analyzing_Similarities_in_Conversational_Sequence_in_One_Dyad.Rmd’ --- re-building ‘Analyzing_Similarities_in_Conversational_Sequences_across_Multiple_Dyads.Rmd’ using rmarkdown Quitting from Analyzing_Similarities_in_Conversational_Sequences_across_Multiple_Dyads.Rmd:466-468 [sentiment_similarity] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error in `[.data.table`: ! attempt access index 3/3 in VECTOR_ELT --- Backtrace: ▆ 1. └─global sentiment_sim_dyads(processed_convs, window_size = 3) 2. └─conversim::sentiment_similarity(window1, window2) 3. ├─sentimentr::sentiment_by(conv1) 4. └─sentimentr:::sentiment_by.character(conv1) 5. ├─base::suppressWarnings(sentiment(text.var = text.var, ...)) 6. │ └─base::withCallingHandlers(...) 7. ├─sentimentr::sentiment(text.var = text.var, ...) 8. └─sentimentr:::sentiment.character(text.var = text.var, ...) 9. ├─sentimentr::sentiment(...) 10. └─sentimentr:::sentiment.get_sentences_character(...) 11. └─sentimentr:::make_sentence_df2(sents, retention_regex = retention_regex) 12. ├─dat[, `:=`(indx, wc < 1), by = c("id", "sentences", "wc")] 13. └─data.table:::`[.data.table`(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'Analyzing_Similarities_in_Conversational_Sequences_across_Multiple_Dyads.Rmd' failed with diagnostics: attempt access index 3/3 in VECTOR_ELT --- failed re-building ‘Analyzing_Similarities_in_Conversational_Sequences_across_Multiple_Dyads.Rmd’ --- re-building ‘utilities_functions.Rmd’ using rmarkdown [WARNING] Deprecated: --highlight-style. Use --syntax-highlighting instead. --- finished re-building ‘utilities_functions.Rmd’ SUMMARY: processing the following files failed: ‘Analyzing_Similarities_between_Two_Long_Speeches.Rmd’ ‘Analyzing_Similarities_in_Conversational_Sequence_in_One_Dyad.Rmd’ ‘Analyzing_Similarities_in_Conversational_Sequences_across_Multiple_Dyads.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: 4 ERRORs See ‘/data/blackswan/ripley/R/packages/tests-devel/conversim.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 2:28.87, 125.95 + 21.94