Running ‘testthat.R’ [107s/176s]
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 6 | WARN 0 | SKIP 70 | PASS 3339 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Fails in check - IMPROVE THESE TESTS (1)
  • On CRAN (58)
  • Skipping check for CRAN release due to r_hub failure (1)
  • Skipping parallel tests (3)
  • empty test (1)
  • keras and tensorflow take too long and have too many dependencies (1)
  • mac and ubuntu give different warnings (4)
  • tidymodels have too many dependencies (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_choosing_metrics.R:63'): gaussian_metrics() ────────────────────
  Error in `set_metrics("gaussian", metrics_list = gaussian_metrics(...), 
      include_model_object_metrics = TRUE)`: metrics in 'metrics_list' should be logical (TRUE/FALSE) not NULL.
  Backtrace:
      ▆
   1. └─cvms (local) get_metric_names(all = FALSE, rmse = FALSE, male = FALSE) at test_choosing_metrics.R:63:2
   2.   └─cvms:::set_metrics(...) at test_choosing_metrics.R:11:4
  ── Error ('test_choosing_metrics.R:432'): binomial_metrics() ───────────────────
  Error in `set_metrics("binomial", metrics_list = binomial_metrics(...), 
      include_model_object_metrics = TRUE)`: metrics in 'metrics_list' should be logical (TRUE/FALSE) not NULL.
  Backtrace:
      ▆
   1. └─cvms (local) get_metric_names(all = FALSE, accuracy = FALSE, f1 = FALSE) at test_choosing_metrics.R:432:2
   2.   └─cvms:::set_metrics(...) at test_choosing_metrics.R:415:4
  ── Error ('test_choosing_metrics.R:780'): multinomial_metrics() ────────────────
  Error in `set_metrics("multinomial", metrics_list = multinomial_metrics(...), 
      include_model_object_metrics = TRUE)`: metrics in 'metrics_list' should be logical (TRUE/FALSE) not NULL.
  Backtrace:
      ▆
   1. └─cvms (local) get_metric_names(all = FALSE, accuracy = FALSE, f1 = FALSE) at test_choosing_metrics.R:780:2
   2.   └─cvms:::set_metrics(...) at test_choosing_metrics.R:763:4
  ── Error ('test_evaluate.R:6575'): testing different number of classes in grouped multinomial evaluate() ──
  Error in `set_metrics(family = type, metrics_list = metrics, include_model_object_metrics = !is.null(models))`: metrics in 'metrics_list' should be logical (TRUE/FALSE) not NULL.
  Backtrace:
       ▆
    1. ├─df %>% dplyr::group_by(.data$TheGroup) %>% ... at test_evaluate.R:6575:2
    2. ├─cvms::evaluate(...)
    3. │ └─cvms:::run_evaluate(...)
    4. │   └─cvms:::run_internal_evaluate_wrapper(...)
    5. │     ├─... %>% tibble::as_tibble()
    6. │     └─plyr::llply(...)
    7. │       ├─base::structure(lapply(pieces, .fun, ...), dim = dim(pieces))
    8. │       └─base::lapply(pieces, .fun, ...)
    9. │         └─cvms (local) FUN(X[[i]], ...)
   10. │           └─cvms:::internal_evaluate(...)
   11. │             └─cvms:::set_metrics(family = type, metrics_list = metrics, include_model_object_metrics = !is.null(models))
   12. ├─tibble::as_tibble(.)
   13. └─dplyr::bind_rows(.)
   14.   └─rlang::list2(...)
  ── Error ('test_set_metrics.R:7'): metrics are correctly set in set_metrics() ──
  Error in `set_metrics("multinomial", metrics_list = list(all = FALSE, Accuracy = TRUE))`: metrics in 'metrics_list' should be logical (TRUE/FALSE) not NULL.
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test_set_metrics.R:7:2
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─cvms:::set_metrics(...)
  ── Error ('test_validate_fn.R:4903'): testing nested tibbles in gaussian validate_fn() ──
  Error in `set_metrics(family = family, metrics_list = metrics, include_model_object_metrics = TRUE)`: metrics in 'metrics_list' should be logical (TRUE/FALSE) not NULL.
  Backtrace:
      ▆
   1. └─cvms::validate_fn(...) at test_validate_fn.R:4903:2
   2.   └─cvms:::validate_list(...)
   3.     └─cvms:::set_metrics(family = family, metrics_list = metrics, include_model_object_metrics = TRUE)
  
  [ FAIL 6 | WARN 0 | SKIP 70 | PASS 3339 ]
  Error: Test failures
  Execution halted