Running ‘testthat.R’ [45s/55s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > require(testthat)
  Loading required package: testthat
  > test_check("LSX")
  Loading required package: LSX
  [ FAIL 3 | WARN 0 | SKIP 2 | PASS 90 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-as.textmodel.R:126:5', 'test-as.textmodel.R:146:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-textmodel.R:19:1'): (code run outside of `test_that()`) ────────
  Error in `getGeneric(f, TRUE, envir, package)`: no generic function found for 'crossprod'
  Backtrace:
       ▆
    1. ├─LSX::textmodel_lss(fcmt_test, seed, terms = feat_test, w = 50) at test-textmodel.R:19:0
    2. ├─LSX:::textmodel_lss.fcm(fcmt_test, seed, terms = feat_test, w = 50)
    3. │ └─(function(x, w, max_count, cache, features, ...) {...
    4. │   └─LSX:::cache_glove(x, w, x_max = max_count, cache = cache, ...)
    5. └─base::loadNamespace(x)
    6.   └─base::namespaceImport(...)
    7.     └─base::namespaceImportFrom(...)
    8.       └─base::.mergeImportMethods(impenv, ns, impvars[[i]])
    9.         └─methods:::.mergeMethodsTable2(...)
   10.           └─methods::getGeneric(f, TRUE, envir, package)
  ── Error ('test-textplot.R:44:5'): textplot_* works with Glove ─────────────────
  Error in `getGeneric(f, TRUE, envir, package)`: no generic function found for 'crossprod'
  Backtrace:
       ▆
    1. ├─LSX::textmodel_lss(fcmt, seed, w = 10) at test-textplot.R:44:4
    2. ├─LSX:::textmodel_lss.fcm(fcmt, seed, w = 10)
    3. │ └─(function(x, w, max_count, cache, features, ...) {...
    4. │   └─LSX:::cache_glove(x, w, x_max = max_count, cache = cache, ...)
    5. └─base::loadNamespace(x)
    6.   └─base::namespaceImport(...)
    7.     └─base::namespaceImportFrom(...)
    8.       └─base::.mergeImportMethods(impenv, ns, impvars[[i]])
    9.         └─methods:::.mergeMethodsTable2(...)
   10.           └─methods::getGeneric(f, TRUE, envir, package)
  ── Error ('test-textplot.R:67:5'): textplot_components() works ─────────────────
  Error in `getGeneric(f, TRUE, envir, package)`: no generic function found for 'crossprod'
  Backtrace:
       ▆
    1. ├─LSX::textmodel_lss(fcmt, seed, w = 10) at test-textplot.R:67:4
    2. ├─LSX:::textmodel_lss.fcm(fcmt, seed, w = 10)
    3. │ └─(function(x, w, max_count, cache, features, ...) {...
    4. │   └─LSX:::cache_glove(x, w, x_max = max_count, cache = cache, ...)
    5. └─base::loadNamespace(x)
    6.   └─base::namespaceImport(...)
    7.     └─base::namespaceImportFrom(...)
    8.       └─base::.mergeImportMethods(impenv, ns, impvars[[i]])
    9.         └─methods:::.mergeMethodsTable2(...)
   10.           └─methods::getGeneric(f, TRUE, envir, package)
  
  [ FAIL 3 | WARN 0 | SKIP 2 | PASS 90 ]
  Error: Test failures
  Execution halted