Running 'testthat.R' [51s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > 
  > library("testthat")
  > library("sentometrics")
  > 
  > test_check("sentometrics")
  
  Iteration: 1 from 9
  alphas run: 0
  Iteration: 2 from 9
  alphas run: 0
  Iteration: 3 from 9
  alphas run: 0
  Iteration: 4 from 9
  alphas run: 0
  Iteration: 5 from 9
  alphas run: 0
  Iteration: 6 from 9
  alphas run: 0
  Iteration: 7 from 9
  alphas run: 0
  Iteration: 8 from 9
  alphas run: 0
  Iteration: 9 from 9
  alphas run: 0
  
  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).
  
  alphas run: 0.2, 0.7
  alphas run: 0.2, 0.7
  alphas run: 0.2, 0.7
  Training model... Something is wrong; all the RMSE metric values are missing:
        RMSE        Rsquared        MAE     
   Min.   : NA   Min.   : NA   Min.   : NA  
   1st Qu.: NA   1st Qu.: NA   1st Qu.: NA  
   Median : NA   Median : NA   Median : NA  
   Mean   :NaN   Mean   :NaN   Mean   :NaN  
   3rd Qu.: NA   3rd Qu.: NA   3rd Qu.: NA  
   Max.   : NA   Max.   : NA   Max.   : NA  
   NAs    :200   NAs    :200   NAs    :200  
  Saving _problems/test_modeling-48.R
  Saving _problems/test_sentiment_computation-202.R
  [ FAIL 2 | WARN 119 | SKIP 0 | PASS 176 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_modeling.R:48:1'): (code run outside of `test_that()`) ─────────
  Error: Stopping
  Backtrace:
      ▆
   1. └─sentometrics::sento_model(sento_measures, y, x = x, ctr = ctrM4) at test_modeling.R:48:1
   2.   └─sentometrics:::run_sento_model(...)
   3.     ├─caret::train(...)
   4.     └─caret:::train.default(...)
  ── Error ('test_sentiment_computation.R:202:1'): (code run outside of `test_that()`) ──
  Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'colSums': lazy-load database 'D:/temp/2026_08_18_01_50_00_4374/RtmpeWIVcx/RLIBS_15c34289e2428/Matrix/R/Matrix.rdb' is corrupt
  Backtrace:
       ▆
    1. ├─quanteda::dfm(as.tokens(toks)) %>% dfm_tfidf(k = 1) at test_sentiment_computation.R:202:1
    2. ├─quanteda::dfm_tfidf(., k = 1)
    3. ├─quanteda:::dfm_tfidf.dfm(., k = 1)
    4. │ ├─quanteda::docfreq(x, scheme = scheme_df, base = base, ...)
    5. │ └─quanteda:::docfreq.dfm(x, scheme = scheme_df, base = base, ...)
    6. │   ├─quanteda::docfreq(x, "count")
    7. │   └─quanteda:::docfreq.dfm(x, "count")
    8. │     ├─methods (local) colSums(x > threshold)
    9. │     ├─x > threshold
   10. │     └─x > threshold
   11. │       ├─methods::as(callGeneric(as(e1, "CsparseMatrix"), e2), "CsparseMatrix")
   12. │       │ └─methods:::.class1(object)
   13. │       ├─methods::callGeneric(as(e1, "CsparseMatrix"), e2)
   14. │       │ └─base::eval(call, parent.frame())
   15. │       │   └─base::eval(call, parent.frame())
   16. │       ├─as(e1, "CsparseMatrix") > e2
   17. │       └─as(e1, "CsparseMatrix") > e2
   18. └─base::.handleSimpleError(...)
   19.   └─base (local) h(simpleError(msg, call))
  
  [ FAIL 2 | WARN 119 | SKIP 0 | PASS 176 ]
  Error:
  ! Test failures.
  Execution halted