Running 'spelling.R' [0s]
  Running 'testthat.R' [487s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > require(seededlda)
  Loading required package: seededlda
  
  Attaching package: 'seededlda'
  
  The following object is masked from 'package:stats':
  
      terms
  
  > require(testthat)
  Loading required package: testthat
  > test_check("seededlda")
  Saving _problems/test-utils-24.R
  Saving _problems/test-utils-72.R
  [ FAIL 2 | WARN 3 | SKIP 9 | PASS 167 ]
  
  ══ Skipped tests (9) ═══════════════════════════════════════════════════════════
  • On CRAN (8): 'test-textmodel_lda.R:17:5', 'test-textmodel_lda.R:121:2',
    'test-textmodel_lda.R:215:5', 'test-textmodel_seededlda.R:119:5',
    'test-textmodel_seededlda.R:135:5', 'test-textmodel_seededlda.R:176:5',
    'test-textmodel_seededlda.R:195:5', 'test-textmodel_seededlda.R:231:5'
  • empty test (1):
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-utils.R:24:2'): divergence() is working ────────────────────────
  Error in `Matrix(numeric(), nrow = 0, ncol = 0, sparse = TRUE)`: lazy-load database 'D:/temp/2026_08_18_01_50_00_4374/Rtmpgr75ov/RLIBS_3b087a3272d8/Matrix/R/Matrix.rdb' is corrupt
  Backtrace:
      ▆
   1. ├─seededlda::divergence(lda) at test-utils.R:24:9
   2. └─seededlda:::divergence.textmodel_lda(lda)
   3.   └─proxyC::dist(x$phi, method = "jensen")
   4.     └─proxyC:::proxy(...)
   5.       ├─methods::as(...)
   6.       │ └─methods:::.class1(object)
   7.       └─Matrix::Matrix(numeric(), nrow = 0, ncol = 0, sparse = TRUE)
  ── Error ('test-utils.R:71:5'): regularize is working ──────────────────────────
  Error in `Matrix(numeric(), nrow = 0, ncol = 0, sparse = TRUE)`: lazy-load database 'D:/temp/2026_08_18_01_50_00_4374/Rtmpgr75ov/RLIBS_3b087a3272d8/Matrix/R/Matrix.rdb' is corrupt
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(divergence(lda), 0.34, tolerance = 0.01) at test-utils.R:71:5
    2. │ └─testthat::quasi_label(enquo(object), label)
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─seededlda::divergence(lda)
    5. └─seededlda:::divergence.textmodel_lda(lda)
    6.   └─proxyC::dist(x$phi, method = "jensen")
    7.     └─proxyC:::proxy(...)
    8.       ├─methods::as(...)
    9.       │ └─methods:::.class1(object)
   10.       └─Matrix::Matrix(numeric(), nrow = 0, ncol = 0, sparse = TRUE)
  
  [ FAIL 2 | WARN 3 | SKIP 9 | PASS 167 ]
  Error:
  ! Test failures.
  Execution halted