Running ‘testthat.R’ [149s/183s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(oolong)
  > 
  > test_check("oolong")
  Package version: 3.1.0
  Unicode version: 7.0
  ICU version: 55.1
  Parallel computing: 16 of 16 threads used.
  See https://quanteda.io for tutorials and examples.
  New names:
  * NA -> ...1
  `geom_smooth()` using formula 'y ~ x'
  `geom_smooth()` using formula 'y ~ x'
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (6)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-smallk.R:9:5): small k stm ────────────────────────────────────
  `create_oolong(...)` threw an unexpected error.
  Message: there is no package called 'stm'
  Class:   packageNotFoundError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-smallk.R:9:4
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat:::.capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─oolong::create_oolong(...)
    8. │ └─Oolong_test_tm$new(...)
    9. │   └─oolong:::initialize(...)
   10. │     └─oolong:::.generate_test_content(...)
   11. │       ├─oolong:::.extract_ingredients(...)
   12. │       └─oolong:::.extract_ingredients.input_model_s3_stm(...)
   13. └─base::loadNamespace(x)
   14.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   15.     └─base:::withOneRestart(expr, restarts[[1L]])
   16.       └─base:::doWithOneRestart(return(expr), restart)
  ── Failure (test-smallk.R:11:5): small k stm ───────────────────────────────────
  `create_oolong(...)` threw an unexpected error.
  Message: there is no package called 'stm'
  Class:   packageNotFoundError/error/condition
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-smallk.R:11:4
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat:::.capture(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    7. ├─oolong::create_oolong(...)
    8. │ └─Oolong_test_tm$new(...)
    9. │   └─oolong:::initialize(...)
   10. │     └─oolong:::.generate_test_content(...)
   11. │       ├─oolong:::.extract_ingredients(...)
   12. │       └─oolong:::.extract_ingredients.input_model_s3_stm(...)
   13. └─base::loadNamespace(x)
   14.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   15.     └─base:::withOneRestart(expr, restarts[[1L]])
   16.       └─base:::doWithOneRestart(return(expr), restart)
  ── Error (test-smallk.R:28:5): check_calculation_topic_intrusion_multiobject ───
  <packageNotFoundError/error/condition>
  Error in `loadNamespace(x)`: there is no package called 'stm'
  Backtrace:
       █
    1. ├─oolong::create_oolong(smallk, abstracts$text, exact_n = 10) test-smallk.R:28:4
    2. │ └─Oolong_test_tm$new(...)
    3. │   └─oolong:::initialize(...)
    4. │     └─oolong:::.generate_test_content(...)
    5. │       ├─oolong:::.extract_ingredients(...)
    6. │       └─oolong:::.extract_ingredients.input_model_s3_stm(...)
    7. └─base::loadNamespace(x)
    8.   └─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
    9.     └─base:::withOneRestart(expr, restarts[[1L]])
   10.       └─base:::doWithOneRestart(return(expr), restart)
  
  [ FAIL 3 | WARN 0 | SKIP 6 | PASS 147 ]
  Deleting unused snapshots:
  * printing.md
  Error: Test failures
  Execution halted