Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [16s/22s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(stm)
  stm v1.3.6.1 successfully loaded. See ?stm for help. 
   Papers, resources, and other materials at structuraltopicmodel.com
  > 
  > test_check("stm")
  Building corpus... 
  Converting to Lower Case... 
  Removing punctuation... 
  Removing stopwords... 
  Removing numbers... 
  Stemming... 
  Creating Output... 
  Removed 1098 of 1102 terms (3659 of 4143 tokens) due to sparselevel of 0.8 
  Removing 2 of 4 terms (223 of 377 tokens) due to frequency 
  Removing 117 Documents with No Words 
  Your corpus now has 135 documents, 2 terms and 154 tokens.Beginning Spectral Initialization 
  	 Calculating the gram matrix...
  Building corpus... 
  Converting to Lower Case... 
  Removing punctuation... 
  Removing stopwords... 
  Removing numbers... 
  Stemming... 
  Creating Output... 
  Removing 640 of 1102 terms (640 of 3789 tokens) due to frequency 
  Your corpus now has 341 documents, 462 terms and 3149 tokens.Beginning Spectral Initialization 
  	 Calculating the gram matrix...
  Beginning Random Initialization 
  ....................................................................................................
  Completed E-Step (2 seconds). 
  Completed M-Step. 
  Model Terminated Before Convergence Reached 
  Beginning Spectral Initialization 
  	 Calculating the gram matrix...
  Beginning Spectral Initialization 
  	 Calculating the gram matrix...
  Beginning Spectral Initialization 
  	 Calculating the gram matrix...
  Beginning Random Initialization 
  ....................................................................................................
  Completed Group 2 E-Step (1 seconds). 
  ....................................................................................................
  Completed Group 1 E-Step (1 seconds). 
  Completed M-Step. 
  Completing Iteration 1 (approx. per word bound = -10.359) 
  ....................................................................................................
  Completed Group 1 E-Step (1 seconds). 
  Completed M-Step. 
  ....................................................................................................
  Completed Group 2 E-Step (1 seconds). 
  Completed M-Step. 
  Model Terminated Before Convergence Reached 
  [ FAIL 5 | WARN 3 | SKIP 0 | PASS 4 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-quanteda-stm.R:13:5'): Test that stm works on a quanteda dfm ───
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─stm::stm(...) at test-quanteda-stm.R:13:4
   2.   └─stm:::stm.control(documents, vocab, settings, model)
   3.     └─stm:::stm.init(documents, settings)
   4.       └─stm:::gram(mat)
  ── Error ('test-quanteda-stm.R:37:5'): Test that stm works on a classic stm object structure ──
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─stm::stm(...) at test-quanteda-stm.R:37:4
   2.   └─stm:::stm.control(documents, vocab, settings, model)
   3.     └─stm:::stm.init(documents, settings)
   4.       └─stm:::gram(mat)
  ── Error ('test-stm-options.R:10:3'): Test that spectral init works ────────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─stm::stm(...) at test-stm-options.R:10:2
   2.   └─stm:::stm.control(documents, vocab, settings, model)
   3.     └─stm:::stm.init(documents, settings)
   4.       └─stm:::gram(mat)
  ── Error ('test-stm-options.R:15:3'): Test that Prevalence works ───────────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─stm::stm(...) at test-stm-options.R:15:2
   2.   └─stm:::stm.control(documents, vocab, settings, model)
   3.     └─stm:::stm.init(documents, settings)
   4.       └─stm:::gram(mat)
  ── Error ('test-stm-options.R:22:3'): Test that Content works ──────────────────
  Error: 'crossprod' is not an exported object from 'namespace:Matrix'
  Backtrace:
      ▆
   1. └─stm::stm(...) at test-stm-options.R:22:2
   2.   └─stm:::stm.control(documents, vocab, settings, model)
   3.     └─stm:::stm.init(documents, settings)
   4.       └─stm:::gram(mat)
  
  [ FAIL 5 | WARN 3 | SKIP 0 | PASS 4 ]
  Error: Test failures
  Execution halted