CRAN Package Check Results for Package conversim

Last updated on 2025-12-20 21:49:29 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.0 13.98 168.64 182.62 ERROR
r-devel-linux-x86_64-debian-gcc 0.1.0 9.42 116.89 126.31 ERROR
r-devel-linux-x86_64-fedora-clang 0.1.0 25.00 276.11 301.11 ERROR
r-devel-linux-x86_64-fedora-gcc 0.1.0 26.00 408.36 434.36 OK
r-devel-windows-x86_64 0.1.0 17.00 297.00 314.00 OK
r-patched-linux-x86_64 0.1.0 15.08 226.36 241.44 OK
r-release-linux-x86_64 0.1.0 11.57 223.66 235.23 OK
r-release-macos-arm64 0.1.0 OK
r-release-macos-x86_64 0.1.0 8.00 222.00 230.00 OK
r-release-windows-x86_64 0.1.0 16.00 290.00 306.00 OK
r-oldrel-macos-arm64 0.1.0 OK
r-oldrel-macos-x86_64 0.1.0 8.00 219.00 227.00 OK
r-oldrel-windows-x86_64 0.1.0 22.00 360.00 382.00 OK

Check Details

Version: 0.1.0
Check: examples
Result: ERROR Running examples in ‘conversim-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### 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 Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 0.1.0
Check: tests
Result: ERROR Running ‘testthat.R’ [9s/11s] 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 Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.1.0
Check: re-building of vignette outputs
Result: 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/rlang_error> 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/rlang_error> 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/rlang_error> 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 Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc

Version: 0.1.0
Check: tests
Result: ERROR Running ‘testthat.R’ [6s/7s] 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 Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.1.0
Check: examples
Result: 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 Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.1.0
Check: tests
Result: ERROR Running ‘testthat.R’ [15s/43s] 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 Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.1.0
Check: re-building of vignette outputs
Result: 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/rlang_error> 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/rlang_error> 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/rlang_error> 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 Flavor: r-devel-linux-x86_64-fedora-clang