Running ‘testthat.R’ [108s/149s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(cvms)
  > 
  > if (require("xpectr")) {
  +   test_check("cvms")
  + }
  Loading required package: xpectr
  Saving _problems/test_validate_fn-4542.R
  Saving _problems/test_validate_fn-4546.R
  Saving _problems/test_validate_fn-4550.R
  Saving _problems/test_validate_fn-4554.R
  Saving _problems/test_validate_fn-4558.R
  Saving _problems/test_validate_fn-4561.R
  Saving _problems/test_validate_fn-4567.R
  Saving _problems/test_validate_fn-4572.R
  Saving _problems/test_validate_fn-4577.R
  Saving _problems/test_validate_fn-4581.R
  [ FAIL 10 | WARN 1 | SKIP 71 | PASS 3592 ]
  
  ══ 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:126:3', 'test_cross_validate.R:230:3',
    'test_cross_validate.R:702:3', 'test_cross_validate.R:903:3',
    'test_cross_validate.R:937:3', 'test_cross_validate.R:987:3',
    'test_cross_validate.R:1213:3', 'test_cross_validate.R:1486:3',
    'test_cross_validate.R:1827:3', 'test_cross_validate.R:2168:3',
    'test_cross_validate.R:2363:3', 'test_cross_validate.R:2456:3',
    'test_cross_validate.R:3083:3', 'test_cross_validate.R:3161: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:961:3',
    'test_cross_validate_fn.R:1048:3', 'test_cross_validate_fn.R:1300:3',
    'test_cross_validate_fn.R:1411:3', 'test_cross_validate_fn.R:1544:3',
    'test_cross_validate_fn.R:1944:3', 'test_cross_validate_fn.R:2053:3',
    'test_cross_validate_fn.R:2240:3', 'test_cross_validate_fn.R:2517:3',
    'test_cross_validate_fn.R:2566:3', 'test_cross_validate_fn.R:2607:3',
    'test_cross_validate_fn.R:3276:3', 'test_cross_validate_fn.R:3341:3',
    'test_cross_validate_fn.R:3409:3', 'test_cross_validate_fn.R:3469:3',
    'test_evaluate.R:3863:3', 'test_evaluate.R:4286:3', 'test_evaluate.R:4785:3',
    'test_evaluate.R:5430: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:114:3', 'test_validate.R:279:3', 'test_validate.R:413:3',
    'test_validate.R:648: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:2325:3'
  • mac and ubuntu give different warnings (4): 'test_cross_validate.R:564:3',
    'test_cross_validate.R:632:3', 'test_helpers.R:42:3', 'test_helpers.R:287:3'
  • tidymodels have too many dependencies (1): 'test_cross_validate_fn.R:2452:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_validate_fn.R:4539:5'): testing nested tibbles in multinomial validate_fn() ──
  Expected `output_19148[["RowName"]]` to equal `c("class_2", "class_3", "class_2", "class_3")`.
  Differences:
  target is NULL, current is character
  ── Failure ('test_validate_fn.R:4543:5'): testing nested tibbles in multinomial validate_fn() ──
  Expected `output_19148[["(Intercept)"]]` to equal `c(0.13991, 0.18849, 0.13991, 0.18849)`.
  Differences:
  target is NULL, current is numeric
  ── Failure ('test_validate_fn.R:4547:5'): testing nested tibbles in multinomial validate_fn() ──
  Expected `output_19148[["predictor_1"]]` to equal `c(3.21067, -3.86798, 3.21067, -3.86798)`.
  Differences:
  target is NULL, current is numeric
  ── Failure ('test_validate_fn.R:4551:5'): testing nested tibbles in multinomial validate_fn() ──
  Expected `output_19148[["predictor_2"]]` to equal `c(-0.39609, 1.25989, -0.39609, 1.25989)`.
  Differences:
  target is NULL, current is numeric
  ── Failure ('test_validate_fn.R:4555:5'): testing nested tibbles in multinomial validate_fn() ──
  Expected `output_19148[["predictor_3"]]` to equal `c(-2.67468, 2.79658, -2.67468, 2.79658)`.
  Differences:
  target is NULL, current is numeric
  ── Failure ('test_validate_fn.R:4559:5'): testing nested tibbles in multinomial validate_fn() ──
  Expected `output_19148[["p.value"]]` to equal `c(NA, NA, NA, NA)`.
  Differences:
  Lengths (2, 4) differ (comparison on first 2 components)
  ── Failure ('test_validate_fn.R:4563:5'): testing nested tibbles in multinomial validate_fn() ──
  Expected `names(output_19148)` to equal `c(...)`.
  Differences:
  Lengths differ: 5 is not 6
  ── Failure ('test_validate_fn.R:4569:5'): testing nested tibbles in multinomial validate_fn() ──
  Expected `xpectr::element_classes(output_19148)` to equal `c("character", "numeric", "numeric", "numeric", "numeric", "logical")`.
  Differences:
  Lengths differ: 5 is not 6
  ── Failure ('test_validate_fn.R:4574:5'): testing nested tibbles in multinomial validate_fn() ──
  Expected `xpectr::element_types(output_19148)` to equal `c("character", "double", "double", "double", "double", "logical")`.
  Differences:
  Lengths differ: 5 is not 6
  ── Failure ('test_validate_fn.R:4579:5'): testing nested tibbles in multinomial validate_fn() ──
  Expected `dim(output_19148)` to equal `c(4L, 6L)`.
  Differences:
  2/2 mismatches (average diff: 1.5)
  [1] 2 - 4 == -2
  [2] 5 - 6 == -1
  
  [ FAIL 10 | WARN 1 | SKIP 71 | PASS 3592 ]
  Error:
  ! Test failures.
  Execution halted