R Under development (unstable) (2025-04-18 r88159 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # 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/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(tradeoffaucdim) Loading required package: SuperLearner Loading required package: nnls Loading required package: gam Loading required package: splines Loading required package: foreach Loaded gam 1.22-5 Super Learner Version: 2.0-29 Package created on 2024-02-06 > > test_check("tradeoffaucdim" ) fitting model SL.glm ===>--------------------------- 9% | ETA: 15s fitting model SL.glm ========>---------------------- 27% | ETA: 12s fitting model SL.glm =============>----------------- 43% | ETA: 10s fitting model SL.glm ==================>------------ 58% | ETA: 7s fitting model SL.glm ======================>-------- 72% | ETA: 5s fitting model SL.glm =========================>----- 83% | ETA: 3s fitting model SL.glm ============================>-- 95% | ETA: 1s [ FAIL 2 | WARN 0 | SKIP 0 | PASS 31 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-03_apply_model.R:4:28'): output ──────────────────────────────── Error in `dplyr::mutate(., performance = purrr::map2_dbl(.x = model_fit, .y = newY, .f = function(.x, .y) { pred_rocr = ROCR::prediction(.x$SL.predict, .y) measure = ROCR::performance(pred_rocr, measure = perf_measure, x.measure = "cutoff")@y.values[[1]] return(measure) }))`: i In argument: `performance = purrr::map2_dbl(...)`. Caused by error in `purrr::map2_dbl()`: i In index: 1. Caused by error in `ROCR::prediction()`: ! Number of classes is not equal to 2. ROCR currently supports only evaluation of binary classification tasks. ── Error ('test-06-compare_test.R:10:31'): output ────────────────────────────── Error in `dplyr::mutate(., performance = purrr::map2_dbl(.x = model_fit, .y = newY, .f = function(.x, .y) { pred_rocr = ROCR::prediction(.x$SL.predict, .y) measure = ROCR::performance(pred_rocr, measure = perf_measure, x.measure = "cutoff")@y.values[[1]] return(measure) }))`: i In argument: `performance = purrr::map2_dbl(...)`. Caused by error in `purrr::map2_dbl()`: i In index: 16. Caused by error in `ROCR::prediction()`: ! Number of classes is not equal to 2. ROCR currently supports only evaluation of binary classification tasks. [ FAIL 2 | WARN 0 | SKIP 0 | PASS 31 ] Error: Test failures Execution halted