Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [67s/110s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(stm)
  stm v1.3.6 successfully loaded. See ?stm for help. 
   Papers, resources, and other materials at structuraltopicmodel.com
  > 
  > test_check("stm")
  Beginning Spectral Initialization 
  	 Calculating the gram matrix...
  	 Finding anchor words...
   	...
  	 Recovering initialization...
   	...........
  Initialization complete.
  .................................................................................................................
  Completed E-Step (0 seconds). 
  Completed M-Step. 
  Completing Iteration 1 (approx. per word bound = -5.754) 
  .................................................................................................................
  Completed E-Step (0 seconds). 
  Completed M-Step. 
  Model Terminated Before Convergence Reached 
  Beginning Random Initialization 
  ....................................................................................................
  Completed E-Step (3 seconds). 
  Completed M-Step. 
  Model Terminated Before Convergence Reached 
  Beginning Spectral Initialization 
  	 Calculating the gram matrix...
  	 Finding anchor words...
   	...
  	 Recovering initialization...
   	..........................
  Initialization complete.
  ....................................................................................................
  Completed E-Step (3 seconds). 
  Completed M-Step. 
  Model Terminated Before Convergence Reached 
  Beginning Spectral Initialization 
  	 Calculating the gram matrix...
  	 Finding anchor words...
   	...
  	 Recovering initialization...
   	..........................
  Initialization complete.
  ....................................................................................................
  Completed E-Step (3 seconds). 
  Completed M-Step. 
  Completing Iteration 1 (approx. per word bound = -7.197) 
  ....................................................................................................
  Completed E-Step (3 seconds). 
  Completed M-Step. 
  Model Terminated Before Convergence Reached 
  Beginning Spectral Initialization 
  	 Calculating the gram matrix...
  	 Finding anchor words...
   	...
  	 Recovering initialization...
   	..........................
  Initialization complete.
  ....................................................................................................
  Completed E-Step (4 seconds). 
  .....................................................................................................
  Completed M-Step (22 seconds). 
  Completing Iteration 1 (approx. per word bound = -7.197) 
  ....................................................................................................
  Completed E-Step (2 seconds). 
  .....................................................................................................
  Completed M-Step (20 seconds). 
  Model Terminated Before Convergence Reached 
  Beginning Random Initialization 
  ....................................................................................................
  Completed Group 2 E-Step (1 seconds). 
  ....................................................................................................
  Completed Group 1 E-Step (2 seconds). 
  Completed M-Step. 
  Completing Iteration 1 (approx. per word bound = -10.359) 
  ....................................................................................................
  Completed Group 1 E-Step (2 seconds). 
  Completed M-Step. 
  ....................................................................................................
  Completed Group 2 E-Step (2 seconds). 
  Completed M-Step. 
  Model Terminated Before Convergence Reached 
  [ FAIL 2 | WARN 3 | SKIP 0 | PASS 6 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-prepare.R:6:3'): textProcessor and prepDocuments correctly subset metadata  ──
  Error in `.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)`: invalid non-character version specification 'x' (type: double)
  Backtrace:
      ▆
   1. └─stm::textProcessor(...) at test-prepare.R:6:2
   2.   └─base::Ops.numeric_version(utils::packageVersion("tm"), 0.6)
   3.     └─base::as.numeric_version(e2)
   4.       └─base::numeric_version(x)
   5.         └─base::.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)
  ── Error ('test-quanteda-stm.R:25:1'): (code run outside of `test_that()`) ─────
  Error in `.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)`: invalid non-character version specification 'x' (type: double)
  Backtrace:
      ▆
   1. └─base::Ops.numeric_version(utils::packageVersion("tm"), 0.6) at test-quanteda-stm.R:25:0
   2.   └─base::as.numeric_version(e2)
   3.     └─base::numeric_version(x)
   4.       └─base::.make_numeric_version(x, strict, .standard_regexps()$valid_numeric_version)
  
  [ FAIL 2 | WARN 3 | SKIP 0 | PASS 6 ]
  Error: Test failures
  Execution halted