Running ‘testthat.R’ [82s/104s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(oolong)
  > 
  > test_check("oolong")
  Package version: 4.1.0
  Unicode version: 15.0
  ICU version: 72.1
  Parallel computing: 3 of 64 threads used.
  See https://quanteda.io for tutorials and examples.
  Loading required package: shinytest2
  New names:
  * `` -> `...1`
  `geom_smooth()` using formula = 'y ~ x'
  `geom_smooth()` using formula = 'y ~ x'
  New names:
  * `` -> `...1`
  `geom_smooth()` using formula = 'y ~ x'
  `geom_smooth()` using formula = 'y ~ x'
  [ FAIL 3 | WARN 0 | SKIP 52 | PASS 161 ]
  
  ══ Skipped tests (52) ══════════════════════════════════════════════════════════
  • On CRAN (46): 'test-keyatm.R:14:5', 'test-keyatm.R:21:5',
    'test-printing.R:23:5', 'test-printing.R:27:5', 'test-printing.R:40:5',
    'test-printing.R:44:5', 'test-printing.R:48:5', 'test-printing.R:65:5',
    'test-printing.R:72:5', 'test-printing.R:82:5', 'test-seededlda.R:38:5',
    'test-seededlda.R:47:5', 'test-shiny.R:19:5', 'test-shiny.R:37:5',
    'test-shiny.R:66:5', 'test-shiny.R:114:5', 'test-shiny.R:124:5',
    'test-shiny.R:136:5', 'test-shiny.R:146:5', 'test-shiny.R:173:5',
    'test-shiny.R:188:5', 'test-shiny.R:212:5', 'test-shiny.R:225:5',
    'test-topicmodels.R:14:5', 'test-topicmodels.R:23:5', 'test-ui.R:26:5',
    'test-ui.R:35:5', 'test-ui.R:51:5', 'test-ui.R:64:5', 'test-ui.R:79:5',
    'test-ui.R:90:5', 'test-ui.R:101:5', 'test-ui.R:114:5', 'test-ui.R:124:5',
    'test-ui.R:133:5', 'test-ui.R:146:5', 'test-ui.R:160:5', 'test-ui.R:177:5',
    'test-ui.R:186:5', 'test-ui.R:205:5', 'test-ui.R:225:5', 'test-ui.R:240:5',
    'test-update.R:3:5', 'test-update.R:16:5', 'test-update.R:26:5',
    'test-update.R:40:5'
  • dir.exists("../testdata/downloaded") is not TRUE (2): 'test-revert.R:10:5',
    'test-revert.R:29:5'
  • exists("abstracts_topicmodels") is not TRUE (2): 'test-topicmodels.R:59:5',
    'test-topicmodels.R:67:5'
  • exists("abstracts_unseededlda") is not TRUE (1): 'test-seededlda.R:65:5'
  • exists("abstracts_warplda") is not TRUE (1): 'test-warplda.R:3:5'
  
  ══ 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(...) at test-smallk.R:9:5
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .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 (local) 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 (local) withOneRestart(expr, restarts[[1L]])
   16.       └─base (local) 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(...) at test-smallk.R:11:5
    2. │ └─testthat:::expect_condition_matching(...)
    3. │   └─testthat:::quasi_capture(...)
    4. │     ├─testthat (local) .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 (local) 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 (local) withOneRestart(expr, restarts[[1L]])
   16.       └─base (local) 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) at test-smallk.R:28:5
    2. │ └─Oolong_test_tm$new(...)
    3. │   └─oolong (local) 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 (local) withOneRestart(expr, restarts[[1L]])
   10.       └─base (local) doWithOneRestart(return(expr), restart)
  
  [ FAIL 3 | WARN 0 | SKIP 52 | PASS 161 ]
  Error: Test failures
  Execution halted