Running 'testthat.R' [169s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(stm)
  stm v1.3.3 (2018-1-26) successfully loaded. See ?stm for help. 
   Papers, resources, and other materials at structuraltopicmodel.com
  > 
  > test_check("stm")
  -- 1. Error: textProcessor and prepDocuments correctly subset metadata  (@test-p
  ICU init failed: U_FILE_ACCESS_ERROR
  1: textProcessor(documents = gadarian$open.ended.response, metadata = data.frame(MetaID = gadarian$MetaID), 
         sparselevel = 0.8) at testthat/test-prepare.R:6
  2: stringr::str_replace_all
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  -- 2. Error: Test that stm works on a quanteda dfm (@test-quanteda-stm.R#8)  ---
  could not find function "corpus"
  1: .handleSimpleError(function (e) 
     {
         handled <<- TRUE
         test_error <<- e
         options(expressions = expressions_opt_new)
         on.exit(options(expressions = expressions_opt), add = TRUE)
         e$expectation_calls <- frame_calls(11, 2)
         test_error <<- e
         register_expectation(e)
         e$handled <- TRUE
         test_error <<- e
     }, "could not find function \"corpus\"", quote(corpus(gadarian, text_field = "open.ended.response"))) at testthat/test-quanteda-stm.R:8
  2: eval(code, test_env)
  
  -- 3. Error: Test that stm works on a classic stm object structure (@test-quante
  ICU init failed: U_FILE_ACCESS_ERROR
  1: textProcessor(documents = gadarian$open.ended.response, metadata = gadarian) at testthat/test-quanteda-stm.R:27
  2: stringr::str_replace_all
  3: getExportedValue(pkg, name)
  4: asNamespace(ns)
  5: getNamespace(ns)
  6: tryCatch(loadNamespace(name), error = function(e) stop(e))
  7: tryCatchList(expr, classes, parentenv, handlers)
  8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  9: value[[3L]](cond)
  
  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 (1 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 (1 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 (16 seconds). 
  Completing Iteration 1 (approx. per word bound = -7.197) 
  ....................................................................................................
  Completed E-Step (2 seconds). 
  .....................................................................................................
  Completed M-Step (10 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.326) 
  ....................................................................................................
  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  ===========================================================
  OK: 6 SKIPPED: 0 FAILED: 3
  1. Error: textProcessor and prepDocuments correctly subset metadata  (@test-prepare.R#6) 
  2. Error: Test that stm works on a quanteda dfm (@test-quanteda-stm.R#8) 
  3. Error: Test that stm works on a classic stm object structure (@test-quanteda-stm.R#27) 
  
  Error: testthat unit tests failed
  Execution halted