Running 'spelling.R' [0s]
  Running 'testthat.R' [39s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library("testthat")
  > library("quanteda.textmodels")
  > 
  > test_check("quanteda.textmodels")
  == Skipped tests ===============================================================
  * austin cannot be loaded (1)
  * results are a bit stochastic on this small dataset (1)
  
  == Failed tests ================================================================
  -- Failure (test-default-methods.R:31:5): test default textplot methods --------
  `textplot_scale1d(TRUE)` threw an error with unexpected message.
  Expected match: "textplot_scale1d\\(\\) only works on predict\\.textmodel.*objects"
  Actual message: "could not find function \"textplot_scale1d\""
  Backtrace:
      x
   1. \-testthat::expect_error(textplot_scale1d(TRUE), "textplot_scale1d\\(\\) only works on predict\\.textmodel.*objects") test-default-methods.R:31:4
   2.   \-testthat:::quasi_capture(...)
   3.     +-testthat:::.capture(...)
   4.     | \-base::withCallingHandlers(...)
   5.     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  -- Error (test-textmodel_ca.R:98:5): ca textplot_scale1d method works ----------
  Error: could not find function "textplot_scale1d"
  -- Failure (test-textmodel_svm.R:19:5): the svm model works --------------------
  coef(tmod)[1, 1:3, drop = FALSE] not equal to matrix(...).
  3/3 mismatches (average diff: 0.0975)
  [1] 0.356 - 0.554 == -0.1979
  [2] 0.137 - 0.186 == -0.0487
  [3] 0.140 - 0.186 == -0.0458
  -- Failure (test-textmodel_svm.R:27:5): the svm model works --------------------
  predict(tmod, type = "class") not identical to factor(c(d1 = "Y", d2 = "Y", d3 = "Y", d4 = "N", d5 = "Y")).
  1 string mismatch
  -- Error (test-textmodel_svm.R:32:5): the svm model works ----------------------
  Error: probability predictions not implemented for this model type
  Backtrace:
      x
   1. +-testthat::expect_equal(...) test-textmodel_svm.R:32:4
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. +-stats::predict(tmod, type = "probability")
   5. +-stats::predict(tmod, type = "probability")
   6. \-quanteda.textmodels:::predict.textmodel_svm(tmod, type = "probability")
  -- Failure (test-textmodel_svm.R:51:5): the svm model works with different weights --
  predict(tmod, type = "class") not identical to factor(c(d1 = "Y", d2 = "Y", d3 = "Y", d4 = "Y", d5 = "Y"), levels = sort(tmod$classnames)).
  1 string mismatch
  -- Error (test-textmodel_svm.R:56:5): the svm model works with different weights --
  Error: probability predictions not implemented for this model type
  Backtrace:
      x
   1. +-testthat::expect_equal(...) test-textmodel_svm.R:56:4
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. +-stats::predict(tmod, type = "probability")
   5. +-stats::predict(tmod, type = "probability")
   6. \-quanteda.textmodels:::predict.textmodel_svm(tmod, type = "probability")
  -- Failure (test-textmodel_svm.R:109:5): multiclass prediction works -----------
  head(predict(tmod2, type = "class"), 3) not equal to factor(...).
  3 string mismatches
  -- Error (test-textmodel_wordscores.R:241:5): works with different predicted object in different shapes (#1440) --
  Error: could not find function "textplot_scale1d"
  Backtrace:
      x
   1. \-testthat::expect_silent(textplot_scale1d(predict(ws))) test-textmodel_wordscores.R:241:4
   2.   \-testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
   3.     +-testthat:::.capture(...)
   4.     | +-withr::with_output_sink(...)
   5.     | | \-base::force(code)
   6.     | +-base::withCallingHandlers(...)
   7.     | \-base::withVisible(code)
   8.     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  
  [ FAIL 9 | WARN 0 | SKIP 2 | PASS 248 ]
  Error: Test failures
  Execution halted