Last updated on 2025-12-28 01:49:04 CET.
| Package | ERROR | NOTE | OK |
|---|---|---|---|
| sentometrics | 1 | 3 | 9 |
Current CRAN status: ERROR: 1, NOTE: 3, OK: 9
Version: 1.0.1
Check: examples
Result: ERROR
Running examples in 'sentometrics-Ex.R' failed
The error most likely occurred in:
> ### Name: aggregate.sentiment
> ### Title: Aggregate textual sentiment across sentences, documents and time
> ### Aliases: aggregate.sentiment
>
> ### ** Examples
>
> set.seed(505)
>
> data("usnews", package = "sentometrics")
> data("list_lexicons", package = "sentometrics")
> data("list_valence_shifters", package = "sentometrics")
>
> # computation of sentiment
> corpus <- sento_corpus(corpusdf = usnews)
> corpusSample <- quanteda::corpus_sample(corpus, size = 500)
> l1 <- sento_lexicons(list_lexicons[c("LM_en", "HENRY_en")],
+ list_valence_shifters[["en"]])
> l2 <- sento_lexicons(list_lexicons[c("LM_en", "HENRY_en")],
+ list_valence_shifters[["en"]][, c("x", "t")])
> sent1 <- compute_sentiment(corpusSample, l1, how = "counts")
> sent2 <- compute_sentiment(corpusSample, l2, do.sentence = TRUE)
Error in `[.data.table`(dt, , `:=`("sentence_id", seq(.N)), by = id) :
attempt access index 6/6 in VECTOR_ELT
Calls: compute_sentiment ... compute_sentiment.sento_corpus -> compute_sentiment_lexicons -> [ -> [.data.table
Execution halted
Flavor: r-devel-windows-x86_64
Version: 1.0.1
Check: tests
Result: ERROR
Running 'testthat.R' [22s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
>
> library("testthat")
> library("sentometrics")
>
> test_check("sentometrics")
Saving _problems/test_aggregation-27.R
Saving _problems/test_attribution-23.R
This sento_measures object contains 24 textual sentiment time series with 7237 observations each (daily).
Following features are present: wsj wapo economy noneconomy
Following lexicons are used to calculate sentiment: HENRY_en LM_en
Following scheme is applied for aggregation within documents: counts
Following scheme is applied for aggregation across documents: proportional
Following schemes are applied for aggregation across time: linear exponential0.1 exponential0.6
Aggregate average statistics:
mean sd max min meanCorr
-0.02282 0.18258 0.73352 -1.18603 0.19341
A sento_measures object (24 textual sentiment time series, 7237 observations).
Saving _problems/test_modeling-22.R
Saving _problems/test_sentiment_computation-145.R
[ FAIL 4 | WARN 2 | SKIP 0 | PASS 121 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_aggregation.R:27:1'): (code run outside of `test_that()`) ──────
Error in ``[.data.table`(dt, , `:=`("sentence_id", seq(.N)), by = id)`: attempt access index 6/6 in VECTOR_ELT
Backtrace:
▆
1. └─sentometrics::sento_measures(corpus, lex, ctr2) at test_aggregation.R:27:1
2. ├─sentometrics::compute_sentiment(...)
3. └─sentometrics:::compute_sentiment.sento_corpus(...)
4. └─sentometrics:::compute_sentiment_lexicons(...)
5. ├─dt[, `:=`("sentence_id", seq(.N)), by = id]
6. └─data.table:::`[.data.table`(...)
── Error ('test_attribution.R:23:1'): (code run outside of `test_that()`) ──────
Error in ``[.data.table`(s, , `:=`(w, word_count/sum(word_count, na.rm = TRUE)), by = eval(by))`: attempt access index 10/10 in VECTOR_ELT
Backtrace:
▆
1. └─sentometrics::sento_measures(corpus, lex, ctrA) at test_attribution.R:23:1
2. ├─stats::aggregate(sentiment, ctr)
3. └─sentometrics:::aggregate.sentiment(sentiment, ctr)
4. └─sentometrics:::aggregate_docs(x, by = by, how = howDocs, weightingParamDocs = weightingParamDocs)
5. └─sentometrics:::weights_across(...)
6. ├─s[, `:=`(w, word_count/sum(word_count, na.rm = TRUE)), by = eval(by)]
7. └─data.table:::`[.data.table`(...)
── Error ('test_modeling.R:22:1'): (code run outside of `test_that()`) ─────────
Error in ``[.data.table`(s, , `:=`(w, word_count/sum(word_count, na.rm = TRUE)), by = eval(by))`: attempt access index 10/10 in VECTOR_ELT
Backtrace:
▆
1. └─sentometrics::sento_measures(corpus, lex, ctrA) at test_modeling.R:22:1
2. ├─stats::aggregate(sentiment, ctr)
3. └─sentometrics:::aggregate.sentiment(sentiment, ctr)
4. └─sentometrics:::aggregate_docs(x, by = by, how = howDocs, weightingParamDocs = weightingParamDocs)
5. └─sentometrics:::weights_across(...)
6. ├─s[, `:=`(w, word_count/sum(word_count, na.rm = TRUE)), by = eval(by)]
7. └─data.table:::`[.data.table`(...)
── Error ('test_sentiment_computation.R:135:1'): (code run outside of `test_that()`) ──
Error in ``[.data.table`(dt, , `:=`("sentence_id", seq(.N)), by = id)`: attempt access index 1/1 in VECTOR_ELT
Backtrace:
▆
1. ├─sentometrics::compute_sentiment(...) at test_sentiment_computation.R:135:1
2. └─sentometrics:::compute_sentiment.character(...)
3. └─sentometrics:::compute_sentiment_lexicons(...)
4. ├─dt[, `:=`("sentence_id", seq(.N)), by = id]
5. └─data.table:::`[.data.table`(...)
[ FAIL 4 | WARN 2 | SKIP 0 | PASS 121 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-windows-x86_64
Version: 1.0.1
Check: installed package size
Result: NOTE
installed size is 7.7Mb
sub-directories of 1Mb or more:
data 2.3Mb
libs 4.2Mb
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64
Version: 1.0.1
Check: for GNU extensions in Makefiles
Result: NOTE
GNU make is a SystemRequirements.
Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.