Running ‘testthat.R’ [100s/180s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(keyATM)
  keyATM 0.5.0 successfully loaded.
   Papers, examples, resources, and other materials are at
   https://keyatm.github.io/keyATM/
  > 
  > test_check("keyATM")
  Perplexity [1]: 10562.9 / Convergence [1]: 1
  Perplexity [2]: 9859.03 / Convergence [2]: 0.0666378
  Perplexity [3]: 9255.63 / Convergence [3]: 0.0612026
  Perplexity [4]: 8808.98 / Convergence [4]: 0.0482566
  Perplexity [1]: 11727.5 / Convergence [1]: 1
  Perplexity [2]: 10775.2 / Convergence [2]: 0.0812
  Perplexity [3]: 9757.91 / Convergence [3]: 0.0944099
  Perplexity [4]: 8960.6 / Convergence [4]: 0.0817094
  Perplexity [5]: 8436.88 / Convergence [5]: 0.0584466
  Perplexity [6]: 8136.23 / Convergence [6]: 0.0356361
  [ FAIL 1 | WARN 0 | SKIP 42 | PASS 115 ]
  
  ══ Skipped tests (42) ══════════════════════════════════════════════════════════
  • On CRAN (21): 'test-Initialization.R:19:3', 'test-Initialization.R:25:3',
    'test-Initialization.R:91:3', 'test-Initialization.R:115:3',
    'test-Initialization.R:145:3', 'test-Initialization.R:174:3',
    'test-keyATMCovDirMulti.R:171:3', 'test-keyATMHeterogeneity.R:79:3',
    'test-plot.R:26:3', 'test-plot.R:36:3', 'test-plot.R:52:3',
    'test-plot.R:89:3', 'test-plot.R:100:3', 'test-plot.R:125:3',
    'test-plot.R:144:3', 'test-read_keywords.R:35:5',
    'test-read_keywords.R:44:5', 'test-read_texts.R:38:3',
    'test-read_texts.R:55:3', 'test-resume.R:244:3', 'test-weightedLDA.R:4:1'
  • On Linux (21): 'test-diagnosis.R:25:3', 'test-keyATMBase.R:26:3',
    'test-keyATMBase.R:50:3', 'test-keyATMBase.R:71:3', 'test-keyATMBase.R:91:3',
    'test-keyATMCovDirMulti.R:31:3', 'test-keyATMCovDirMulti.R:85:3',
    'test-keyATMCovDirMulti.R:112:3', 'test-keyATMCovDirMulti.R:135:3',
    'test-keyATMCovDirMulti.R:160:3', 'test-keyATMCovPG.R:33:3',
    'test-keyATMCovPG.R:45:3', 'test-keyATMCovPG.R:58:3',
    'test-keyATMCovPG.R:97:3', 'test-keyATMCovPG.R:124:3',
    'test-keyATMCovPG.R:147:3', 'test-keyATMCovPG.R:171:3',
    'test-keyATMDynamic.R:27:3', 'test-keyATMHeterogeneity.R:93:3',
    'test-keyATMvb.R:21:3', 'test-keyATMvb.R:36:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-keyATMCovDirMulti.R:41:3'): keyATM Heterogeneity Doc-Topic ─────
  Error: 'tcrossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
       ▆
    1. └─keyATM::by_strata_DocTopic(...) at test-keyATMCovDirMulti.R:41:2
    2.   └─base::lapply(1:length(by_values), apply_predict, ...)
    3.     └─keyATM (local) FUN(X[[i]], ...)
    4.       ├─stats::predict(...)
    5.       └─keyATM:::predict.keyATM_output(...)
    6.         ├─base::do.call(...)
    7.         └─future.apply::future_lapply(...)
    8.           └─future.apply:::future_xapply(...)
    9.             ├─future::value(fs)
   10.             └─future:::value.list(fs)
   11.               ├─future::resolve(...)
   12.               └─future:::resolve.list(...)
   13.                 └─future (local) signalConditionsASAP(obj, resignal = FALSE, pos = ii)
   14.                   └─future:::signalConditions(...)
  
  [ FAIL 1 | WARN 0 | SKIP 42 | PASS 115 ]
  Error: Test failures
  Execution halted