Running 'spelling.R' [0s]
  Running 'testthat.R' [78s]
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")
  Building corpus... 
  -- ERROR (test-prepare.R:6:3): textProcessor and prepDocuments correctly subset 
  Error: length(class) == 1L is not TRUE
  Backtrace:
      x
   1. \-stm::textProcessor(...) test-prepare.R:6:2
   2.   \-tm::VCorpus(tm::VectorSource(documents), readerControl = list(language = language))
   3.     \-utils::getS3method("pGetElem", class(x), TRUE)
   4.       \-base::stopifnot(is.character(class), length(class) == 1L)
  
  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.766) 
  .................................................................................................................
  Completed E-Step (0 seconds). 
  Completed M-Step. 
  Model Terminated Before Convergence Reached 
  Building corpus... 
  -- ERROR (test-quanteda-stm.R:27:5): Test that stm works on a classic stm object
  Error: length(class) == 1L is not TRUE
  Backtrace:
      x
   1. \-stm::textProcessor(...) test-quanteda-stm.R:27:4
   2.   \-tm::VCorpus(tm::VectorSource(documents), readerControl = list(language = language))
   3.     \-utils::getS3method("pGetElem", class(x), TRUE)
   4.       \-base::stopifnot(is.character(class), length(class) == 1L)
  
  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 (2 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 (2 seconds). 
  Completed M-Step. 
  Completing Iteration 1 (approx. per word bound = -7.197) 
  ....................................................................................................
  Completed E-Step (2 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 (2 seconds). 
  .....................................................................................................
  Completed M-Step (12 seconds). 
  Completing Iteration 1 (approx. per word bound = -7.197) 
  ....................................................................................................
  Completed E-Step (2 seconds). 
  .....................................................................................................
  Completed M-Step (15 seconds). 
  Model Terminated Before Convergence Reached 
  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 
  == testthat results  ===========================================================
  ERROR (test-prepare.R:6:3): textProcessor and prepDocuments correctly subset metadata 
  ERROR (test-quanteda-stm.R:27:5): Test that stm works on a classic stm object structure
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 6 ]
  Error: Test failures
  Execution halted