Running ‘testthat.R’ [161s/406s]
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 17 | WARN 18 | SKIP 75 | PASS 3522 ]
  
  ══ Skipped tests (75) ══════════════════════════════════════════════════════════
  • 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'
  • missing 'rsvg' and/or 'ggimage'. (4): 'test_plotting_functions.R:8:5',
    'test_plotting_functions.R:90:5', 'test_plotting_functions.R:239:5',
    'test_plotting_functions.R:379:5'
  • tidymodels have too many dependencies (1): 'test_cross_validate_fn.R:2460:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_cross_validate.R:571:3'): gaussian mixed models with cross_validate() ──
  CVed$RMSE not equal to c(9.65949, 15.20226).
  2/2 mismatches (average diff: NaN)
  [1] NaN -  9.66 == NaN
  [2] NaN - 15.20 == NaN
  ── Failure ('test_cross_validate.R:572:3'): gaussian mixed models with cross_validate() ──
  CVed$MAE not equal to c(7.145933, 13.577082).
  2/2 mismatches (average diff: NaN)
  [1] NaN -  7.15 == NaN
  [2] NaN - 13.58 == NaN
  ── Failure ('test_cross_validate.R:573:3'): gaussian mixed models with cross_validate() ──
  CVed$r2m not equal to c(0.28219291, 0.01319592).
  2/2 mismatches (average diff: NaN)
  [1] NA - 0.2822 == NA
  [2] NA - 0.0132 == NA
  ── Failure ('test_cross_validate.R:574:3'): gaussian mixed models with cross_validate() ──
  CVed$r2c not equal to c(0.804314, 0.5016056).
  2/2 mismatches (average diff: NaN)
  [1] NA - 0.804 == NA
  [2] NA - 0.502 == NA
  ── Failure ('test_cross_validate.R:575:3'): gaussian mixed models with cross_validate() ──
  CVed$AIC not equal to c(175.9497, 194.6358).
  2/2 mismatches (average diff: NaN)
  [1] NA - 176 == NA
  [2] NA - 195 == NA
  ── Failure ('test_cross_validate.R:576:3'): gaussian mixed models with cross_validate() ──
  CVed$AICc not equal to c(178.2523, 196.9384).
  2/2 mismatches (average diff: NaN)
  [1] NA - 178 == NA
  [2] NA - 197 == NA
  ── Failure ('test_cross_validate.R:577:3'): gaussian mixed models with cross_validate() ──
  CVed$BIC not equal to c(180.3948, 199.0809).
  2/2 mismatches (average diff: NaN)
  [1] NA - 180 == NA
  [2] NA - 199 == NA
  ── Failure ('test_cross_validate.R:580:3'): gaussian mixed models with cross_validate() ──
  CVed$`Convergence Warnings` not equal to c(0, 0).
  2/2 mismatches (average diff: 4)
  [1] 4 - 0 == 4
  [2] 4 - 0 == 4
  ── Failure ('test_cross_validate.R:584:3'): gaussian mixed models with cross_validate() ──
  CVed$`Warnings and Messages`[[1]] not equal to structure(...).
  Attributes: < Component "row.names": Numeric: lengths (8, 0) differ >
  Component "Fold Column": Lengths (8, 0) differ (string compare on first 0)
  Component "Fold": Numeric: lengths (8, 0) differ
  Component "Function": Lengths (8, 0) differ (string compare on first 0)
  Component "Type": Lengths (8, 0) differ (string compare on first 0)
  Component "Message": Lengths (8, 0) differ (string compare on first 0)
  ── Failure ('test_validate.R:402:3'): gaussian model with validate() ───────────
  Vgauss$RMSE not equal to 7.75.
  1/1 mismatches
  [1] NaN - 7.75 == NaN
  ── Failure ('test_validate.R:403:3'): gaussian model with validate() ───────────
  Vgauss$r2m not equal to 0.305.
  Modes: logical, numeric
  target is logical, current is numeric
  ── Failure ('test_validate.R:404:3'): gaussian model with validate() ───────────
  Vgauss$r2c not equal to 0.749.
  Modes: logical, numeric
  target is logical, current is numeric
  ── Failure ('test_validate.R:405:3'): gaussian model with validate() ───────────
  Vgauss$AIC not equal to 149.
  Modes: logical, numeric
  target is logical, current is numeric
  ── Failure ('test_validate.R:406:3'): gaussian model with validate() ───────────
  Vgauss$AICc not equal to 152.
  Modes: logical, numeric
  target is logical, current is numeric
  ── Failure ('test_validate.R:407:3'): gaussian model with validate() ───────────
  Vgauss$BIC not equal to 152.5377.
  Modes: logical, numeric
  target is logical, current is numeric
  ── Failure ('test_validate.R:408:3'): gaussian model with validate() ───────────
  Vgauss$`Convergence Warnings` not equal to 0.
  1/1 mismatches
  [1] 1 - 0 == 1
  ── Failure ('test_validate.R:414:3'): gaussian model with validate() ───────────
  as.character(Vgauss$Process[[1]]) %in% ... is not TRUE
  
  `actual`:   FALSE
  `expected`: TRUE 
  
  [ FAIL 17 | WARN 18 | SKIP 75 | PASS 3522 ]
  Error: Test failures
  Execution halted