Running ‘testthat.R’ [13s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > 
  > library("testthat")
  > library("cat2cat")
  > 
  > test_check("cat2cat")
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 67 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-cat2cat.R:60:3'): Simple backward cat2cat with 2 periods and ml ──
  Error in `delayed_package_load("caret", sprintf("Please install %s package to use the %s model in the cat2cat function.", 
      "caret", "knn"))`: Please install caret package to use the knn model in the cat2cat function.
  Backtrace:
      ▆
   1. └─cat2cat::cat2cat(...) at test-cat2cat.R:60:3
   2.   └─cat2cat:::cat2cat_ml(...)
   3.     └─cat2cat:::validate_ml(ml)
   4.       └─cat2cat:::delayed_package_load(...)
  ── Error ('test-cat2cat.R:104:5'): Simple backward cat2cat with 2 periods and ml, not all mappings ──
  Error in `delayed_package_load("caret", sprintf("Please install %s package to use the %s model in the cat2cat function.", 
      "caret", "knn"))`: Please install caret package to use the knn model in the cat2cat function.
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-cat2cat.R:104: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. └─cat2cat::cat2cat(...)
    8.   └─cat2cat:::cat2cat_ml(...)
    9.     └─cat2cat:::validate_ml(ml)
   10.       └─cat2cat:::delayed_package_load(...)
  ── Error ('test-cat2cat.R:116:1'): (code run outside of `test_that()`) ─────────
  Error in `delayed_package_load("caret", sprintf("Please install %s package to use the %s model in the cat2cat function.", 
      "caret", "knn"))`: Please install caret package to use the knn model in the cat2cat function.
  Backtrace:
      ▆
   1. └─cat2cat::cat2cat(...) at test-cat2cat.R:116:1
   2.   └─cat2cat:::cat2cat_ml(...)
   3.     └─cat2cat:::validate_ml(ml)
   4.       └─cat2cat:::delayed_package_load(...)
  ── Error ('test-cat2cat_ml.R:11:1'): (code run outside of `test_that()`) ───────
  <packageNotFoundError/error/condition>
  Error in `library("caret")`: there is no package called 'caret'
  Backtrace:
      ▆
   1. └─base::library("caret") at test-cat2cat_ml.R:11:1
  ── Error ('test-cat2cat_validate.R:67:3'): validate_ml correct ─────────────────
  Error in `delayed_package_load("caret", sprintf("Please install %s package to use the %s model in the cat2cat function.", 
      "caret", "knn"))`: Please install caret package to use the knn model in the cat2cat function.
  Backtrace:
       ▆
    1. ├─testthat::expect_silent(validate_ml(ml)) at test-cat2cat_validate.R:67:3
    2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
    3. │   ├─testthat (local) .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))
    9. └─cat2cat:::validate_ml(ml)
   10.   └─cat2cat:::delayed_package_load(...)
  ── Error ('test-lms.R:35:5'): summary_c2c is properly adjust the std error - cat2cat case ──
  Error in `delayed_package_load("caret", sprintf("Please install %s package to use the %s model in the cat2cat function.", 
      "caret", "knn"))`: Please install caret package to use the knn model in the cat2cat function.
  Backtrace:
      ▆
   1. └─cat2cat::cat2cat(...) at test-lms.R:35:5
   2.   └─cat2cat:::cat2cat_ml(...)
   3.     └─cat2cat:::validate_ml(ml)
   4.       └─cat2cat:::delayed_package_load(...)
  ── Error ('test-multi_cat2cat.R:19:1'): (code run outside of `test_that()`) ────
  Error in `delayed_package_load("caret", sprintf("Please install %s package to use the %s model in the cat2cat function.", 
      "caret", "knn"))`: Please install caret package to use the knn model in the cat2cat function.
  Backtrace:
      ▆
   1. └─cat2cat::cat2cat(...) at test-multi_cat2cat.R:19:1
   2.   └─cat2cat:::cat2cat_ml(...)
   3.     └─cat2cat:::validate_ml(ml)
   4.       └─cat2cat:::delayed_package_load(...)
  ── Error ('test-softwarex_paper.R:101:1'): (code run outside of `test_that()`) ──
  Error in `delayed_package_load("caret", sprintf("Please install %s package to use the %s model in the cat2cat function.", 
      "caret", "knn"))`: Please install caret package to use the knn model in the cat2cat function.
  Backtrace:
      ▆
   1. └─cat2cat::cat2cat(...) at test-softwarex_paper.R:101:1
   2.   └─cat2cat:::cat2cat_ml(...)
   3.     └─cat2cat:::validate_ml(ml)
   4.       └─cat2cat:::delayed_package_load(...)
  
  [ FAIL 8 | WARN 0 | SKIP 0 | PASS 67 ]
  Error: Test failures
  Execution halted