Running 'testthat.R' [42s/127s]
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")
  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...
  	 Finding anchor words...
   	...
  	 Recovering initialization...
   	...........
  Initialization complete.
  -- 1. Error: Test that stm works on a quanteda dfm (@test-quanteda-stm.R#13)  --
  BLAS/LAPACK routine 'DTRTI2' gave error code -1
  1: stm(gadarian_dfm, K = 3, prevalence = ~treatment + s(pid_rep), data = docvars(gadarian_corpus), 
         max.em.its = 2) at testthat/test-quanteda-stm.R:13
  2: stm.control(documents, vocab, settings, model)
  3: estep(documents = documents, beta.index = betaindex, update.mu = (!is.null(mu$gamma)), 
         beta$beta, lambda, mu$mu, sigma, verbose)
  4: logisticnormalcpp(eta = init, mu = mu.i, siginv = siginv, beta = beta.i, doc = doc, 
         sigmaentropy = sigmaentropy)
  5: hpbcpp(optim.out$par, doc_ct = doc.ct, mu = mu, siginv = siginv, beta = beta, sigmaentropy = sigmaentropy)
  
  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...
  	 Finding anchor words...
   	...
  	 Recovering initialization...
   	....
  Initialization complete.
  -- 2. Error: Test that stm works on a classic stm object structure (@test-quante
  BLAS/LAPACK routine 'DTRTI2' gave error code -1
  1: stm(docs, vocab, 3, prevalence = ~treatment + s(pid_rep), data = meta, max.em.its = 2) at testthat/test-quanteda-stm.R:37
  2: stm.control(documents, vocab, settings, model)
  3: estep(documents = documents, beta.index = betaindex, update.mu = (!is.null(mu$gamma)), 
         beta$beta, lambda, mu$mu, sigma, verbose)
  4: logisticnormalcpp(eta = init, mu = mu.i, siginv = siginv, beta = beta.i, doc = doc, 
         sigmaentropy = sigmaentropy)
  5: hpbcpp(optim.out$par, doc_ct = doc.ct, mu = mu, siginv = siginv, beta = beta, sigmaentropy = sigmaentropy)
  
  Beginning Random Initialization 
  -- 3. Error: Test that CTM stm works (@test-stm-options.R#5)  ------------------
  BLAS/LAPACK routine 'DTRTI2' gave error code -1
  1: stm(poliblog5k.docs, poliblog5k.voc, K = 3, max.em.its = 1, init.type = "Random") at testthat/test-stm-options.R:5
  2: stm.control(documents, vocab, settings, model)
  3: estep(documents = documents, beta.index = betaindex, update.mu = (!is.null(mu$gamma)), 
         beta$beta, lambda, mu$mu, sigma, verbose)
  4: logisticnormalcpp(eta = init, mu = mu.i, siginv = siginv, beta = beta.i, doc = doc, 
         sigmaentropy = sigmaentropy)
  5: hpbcpp(optim.out$par, doc_ct = doc.ct, mu = mu, siginv = siginv, beta = beta, sigmaentropy = sigmaentropy)
  
  Beginning Spectral Initialization 
  	 Calculating the gram matrix...
  	 Finding anchor words...
   	...
  	 Recovering initialization...
   	..........................
  Initialization complete.
  -- 4. Error: Test that spectral init works (@test-stm-options.R#10)  -----------
  BLAS/LAPACK routine 'DTRTI2' gave error code -1
  1: stm(poliblog5k.docs, poliblog5k.voc, K = 3, max.em.its = 1, init.type = "Spectral") at testthat/test-stm-options.R:10
  2: stm.control(documents, vocab, settings, model)
  3: estep(documents = documents, beta.index = betaindex, update.mu = (!is.null(mu$gamma)), 
         beta$beta, lambda, mu$mu, sigma, verbose)
  4: logisticnormalcpp(eta = init, mu = mu.i, siginv = siginv, beta = beta.i, doc = doc, 
         sigmaentropy = sigmaentropy)
  5: hpbcpp(optim.out$par, doc_ct = doc.ct, mu = mu, siginv = siginv, beta = beta, sigmaentropy = sigmaentropy)
  
  Beginning Spectral Initialization 
  	 Calculating the gram matrix...
  	 Finding anchor words...
   	...
  	 Recovering initialization...
   	..........................
  Initialization complete.
  -- 5. Error: Test that Prevalence works (@test-stm-options.R#15)  --------------
  BLAS/LAPACK routine 'DTRTI2' gave error code -1
  1: stm(poliblog5k.docs, poliblog5k.voc, prevalence = ~s(day) * blog, K = 3, max.em.its = 2, 
         init.type = "Spectral", data = poliblog5k.meta) at testthat/test-stm-options.R:15
  2: stm.control(documents, vocab, settings, model)
  3: estep(documents = documents, beta.index = betaindex, update.mu = (!is.null(mu$gamma)), 
         beta$beta, lambda, mu$mu, sigma, verbose)
  4: logisticnormalcpp(eta = init, mu = mu.i, siginv = siginv, beta = beta.i, doc = doc, 
         sigmaentropy = sigmaentropy)
  5: hpbcpp(optim.out$par, doc_ct = doc.ct, mu = mu, siginv = siginv, beta = beta, sigmaentropy = sigmaentropy)
  
  Beginning Spectral Initialization 
  	 Calculating the gram matrix...
  	 Finding anchor words...
   	...
  	 Recovering initialization...
   	..........................
  Initialization complete.
  -- 6. Error: Test that Content works (@test-stm-options.R#22)  -----------------
  BLAS/LAPACK routine 'DTRTI2' gave error code -1
  1: stm(poliblog5k.docs, poliblog5k.voc, content = ~blog, K = 3, max.em.its = 2, init.type = "Spectral", 
         data = poliblog5k.meta) at testthat/test-stm-options.R:22
  2: stm.control(documents, vocab, settings, model)
  3: estep(documents = documents, beta.index = betaindex, update.mu = (!is.null(mu$gamma)), 
         beta$beta, lambda, mu$mu, sigma, verbose)
  4: logisticnormalcpp(eta = init, mu = mu.i, siginv = siginv, beta = beta.i, doc = doc, 
         sigmaentropy = sigmaentropy)
  5: hpbcpp(optim.out$par, doc_ct = doc.ct, mu = mu, siginv = siginv, beta = beta, sigmaentropy = sigmaentropy)
  
  Beginning Random Initialization 
  -- 7. Error: Test that ngroups works (@test-stm-options.R#29)  -----------------
  BLAS/LAPACK routine 'DTRTI2' gave error code -1
  1: stm(poliblog5k.docs, poliblog5k.voc, K = 3, init.type = "Random", ngroups = 2, max.em.its = 2) at testthat/test-stm-options.R:29
  2: stm.control(documents, vocab, settings, model)
  3: estep(documents = gdocs, beta.index = gbetaindex, update.mu = (!is.null(mu$gamma)), 
         beta$beta, glambda, gmu, sigma, verbose)
  4: logisticnormalcpp(eta = init, mu = mu.i, siginv = siginv, beta = beta.i, doc = doc, 
         sigmaentropy = sigmaentropy)
  5: hpbcpp(optim.out$par, doc_ct = doc.ct, mu = mu, siginv = siginv, beta = beta, sigmaentropy = sigmaentropy)
  
  == testthat results  ===========================================================
  OK: 3 SKIPPED: 0 FAILED: 7
  1. Error: Test that stm works on a quanteda dfm (@test-quanteda-stm.R#13) 
  2. Error: Test that stm works on a classic stm object structure (@test-quanteda-stm.R#37) 
  3. Error: Test that CTM stm works (@test-stm-options.R#5) 
  4. Error: Test that spectral init works (@test-stm-options.R#10) 
  5. Error: Test that Prevalence works (@test-stm-options.R#15) 
  6. Error: Test that Content works (@test-stm-options.R#22) 
  7. Error: Test that ngroups works (@test-stm-options.R#29) 
  
  Error: testthat unit tests failed
  Execution halted