Running ‘testthat.R’ [124s/150s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(cvms)
  > 
  > if (require("xpectr")) {
  +   test_check("cvms")
  + }
  Loading required package: xpectr
  [ FAIL 3 | WARN 0 | SKIP 71 | PASS 3613 ]
  
  ══ Skipped tests (71) ══════════════════════════════════════════════════════════
  • Fails in check - IMPROVE THESE TESTS (1): 'test_example_functions.R:7:3'
  • On CRAN (58): 'test_baseline.R:9:3', 'test_baseline.R:630:3',
    'test_baseline.R:921:3', 'test_baseline.R:1218:3', 'test_baseline.R:1518:3',
    'test_baseline.R:3602:3', 'test_baseline.R:3694:3',
    'test_cross_validate.R:134:3', 'test_cross_validate.R:246:3',
    'test_cross_validate.R:734:3', 'test_cross_validate.R:935:3',
    'test_cross_validate.R:969:3', 'test_cross_validate.R:1019:3',
    'test_cross_validate.R:1245:3', 'test_cross_validate.R:1518:3',
    'test_cross_validate.R:1859:3', 'test_cross_validate.R:2200:3',
    'test_cross_validate.R:2395:3', 'test_cross_validate.R:2511:3',
    'test_cross_validate.R:3138:3', 'test_cross_validate.R:3216:3',
    'test_cross_validate_fn.R:101:3', 'test_cross_validate_fn.R:512:3',
    'test_cross_validate_fn.R:752:3', 'test_cross_validate_fn.R:969:3',
    'test_cross_validate_fn.R:1056:3', 'test_cross_validate_fn.R:1308:3',
    'test_cross_validate_fn.R:1419:3', 'test_cross_validate_fn.R:1552:3',
    'test_cross_validate_fn.R:1952:3', 'test_cross_validate_fn.R:2061:3',
    'test_cross_validate_fn.R:2248:3', 'test_cross_validate_fn.R:2525:3',
    'test_cross_validate_fn.R:2574:3', 'test_cross_validate_fn.R:2615:3',
    'test_cross_validate_fn.R:3292:3', 'test_cross_validate_fn.R:3357:3',
    'test_cross_validate_fn.R:3425:3', 'test_cross_validate_fn.R:3485:3',
    'test_evaluate.R:3845:3', 'test_evaluate.R:4268:3', 'test_evaluate.R:4767:3',
    'test_evaluate.R:5412:3', 'test_most_challenging.R:8:3',
    'test_most_challenging.R:369:3', 'test_most_challenging.R:742:3',
    'test_most_challenging.R:1502:3', 'test_select_definitions.R:7:3',
    'test_select_metrics.R:7:3', 'test_select_metrics.R:573:3',
    'test_validate.R:123:3', 'test_validate.R:296:3', 'test_validate.R:430:3',
    'test_validate.R:665:3', 'test_validate_fn.R:185:3',
    'test_validate_fn.R:828:3', 'test_validate_fn.R:2195:3',
    'test_validate_fn.R:3079:3'
  • Skipping check for CRAN release due to r_hub failure (1):
    'test_combine_predictors.R:259:3'
  • Skipping parallel tests (3): 'test_parallelization.R:11:3',
    'test_parallelization.R:56:3', 'test_parallelization.R:141:3'
  • Skipping test as R version is > 4.2. (1): 'test_cross_validate_fn.R:469:3'
  • empty test (1): 'test_parallelization.R:99:1'
  • keras and tensorflow take too long and have too many dependencies (1):
    'test_cross_validate_fn.R:2333:3'
  • mac and ubuntu give different warnings (4): 'test_cross_validate.R:596:3',
    'test_cross_validate.R:664:3', 'test_helpers.R:42:3', 'test_helpers.R:287:3'
  • tidymodels have too many dependencies (1): 'test_cross_validate_fn.R:2460:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_plotting_functions.R:312:3'): plot_confusion_matrix() with sum tiles, class order, and intensity_by percentage ──
  p1$labels not equal to list(...).
  Names: 1 string mismatch
  Component 3: Attributes: < Modes: list, NULL >
  Component 3: Attributes: < Lengths: 1, 0 >
  Component 3: Attributes: < names for target but not for current >
  Component 3: Attributes: < current is not list-like >
  ── Failure ('test_plotting_functions.R:329:3'): plot_confusion_matrix() with sum tiles, class order, and intensity_by percentage ──
  p1$mapping not equal to structure(...).
  Names: 1 string mismatch
  ── Failure ('test_plotting_functions.R:353:3'): plot_confusion_matrix() with sum tiles, class order, and intensity_by percentage ──
  p2$labels not equal to list(...).
  Names: 1 string mismatch
  Component 3: Attributes: < Modes: list, NULL >
  Component 3: Attributes: < Lengths: 1, 0 >
  Component 3: Attributes: < names for target but not for current >
  Component 3: Attributes: < current is not list-like >
  
  [ FAIL 3 | WARN 0 | SKIP 71 | PASS 3613 ]
  Error: Test failures
  Execution halted