CRAN Package Check Results for Package brisk

Last updated on 2026-02-03 19:51:18 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.0 6.36 82.83 89.19 OK
r-devel-linux-x86_64-debian-gcc 0.1.0 4.40 58.29 62.69 OK
r-devel-linux-x86_64-fedora-clang 0.1.0 12.00 105.05 117.05 ERROR
r-devel-linux-x86_64-fedora-gcc 0.1.0 11.00 113.22 124.22 ERROR
r-devel-windows-x86_64 0.1.0 9.00 88.00 97.00 OK
r-patched-linux-x86_64 0.1.0 5.89 74.67 80.56 OK
r-release-linux-x86_64 0.1.0 6.36 73.30 79.66 OK
r-release-macos-arm64 0.1.0 OK
r-release-macos-x86_64 0.1.0 3.00 88.00 91.00 OK
r-release-windows-x86_64 0.1.0 9.00 85.00 94.00 OK
r-oldrel-macos-arm64 0.1.0 OK
r-oldrel-macos-x86_64 0.1.0 3.00 92.00 95.00 OK
r-oldrel-windows-x86_64 0.1.0 11.00 108.00 119.00 OK

Check Details

Version: 0.1.0
Check: examples
Result: ERROR Running examples in ‘brisk-Ex.R’ failed The error most likely occurred in: > ### Name: benefit > ### Title: Bayesian Benefit Risk > ### Aliases: benefit risk br mcda > > ### ** Examples > > set.seed(1132) > ilogit <- function(x) 1 / (1 + exp(-x)) > out <- mcda( + benefit("CV", function(x) ilogit(x), weight = .75), + risk("DVT", function(x) ilogit(- .5 * x), weight = .25), + br_group( + label = "PBO", + CV = rnorm(1e4, .1), + DVT = rnorm(1e4, .1) + ), + br_group( + label = "TRT", + CV = rnorm(1e4, 2), + DVT = rnorm(1e4, 1) + ) + ) > > out # A tibble: 20,000 × 11 CV CV_weight CV_utility CV_score DVT DVT_weight DVT_utility DVT_score <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> 1 1.47 0.75 0.813 0.610 0.439 0.25 0.445 0.111 2 0.239 0.75 0.559 0.420 -2.12 0.25 0.743 0.186 3 0.969 0.75 0.725 0.544 0.974 0.25 0.381 0.0951 4 0.655 0.75 0.658 0.494 0.0771 0.25 0.490 0.123 5 1.51 0.75 0.819 0.615 -0.993 0.25 0.622 0.155 6 -1.32 0.75 0.210 0.158 -0.874 0.25 0.607 0.152 7 0.395 0.75 0.598 0.448 1.03 0.25 0.375 0.0936 8 -1.43 0.75 0.193 0.145 -0.903 0.25 0.611 0.153 9 0.180 0.75 0.545 0.409 -0.685 0.25 0.585 0.146 10 -0.960 0.75 0.277 0.208 -1.50 0.25 0.679 0.170 # ℹ 19,990 more rows # ℹ 3 more variables: label <chr>, iter <int>, total <dbl> > > summary(out, probs = c(.025, .5, .975)) Error in `dplyr::summarize()`: ℹ In argument: `qtiles = safe_quantile(.data$total, prob = c(0.025, 0.5, 0.975))`. ℹ In group 1: `label = "PBO"`. Caused by error: ! `qtiles` must be size 1, not 3. ℹ To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─base::summary(out, probs = c(0.025, 0.5, 0.975)) 2. ├─brisk:::summary.brisk_br(out, probs = c(0.025, 0.5, 0.975)) 3. │ └─scores %>% dplyr::group_by(.data$label) %>% ... 4. ├─dplyr::summarize(...) 5. ├─dplyr:::summarise.grouped_df(...) 6. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 7. │ └─base::withCallingHandlers(...) 8. ├─dplyr:::dplyr_internal_error(...) 9. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 10. │ └─rlang:::signal_abort(cnd, .file) 11. │ └─base::signalCondition(cnd) 12. └─dplyr (local) `<fn>`(`<dpl:::__>`) 13. └─dplyr (local) handler(cnd) 14. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.1.0
Check: tests
Result: ERROR Running ‘testthat.R’ [11s/13s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(brisk) > > test_check("brisk") Saving _problems/test-plot-26.R Saving _problems/test-plot-34.R Saving _problems/test-summary-25.R [ FAIL 3 | WARN 10 | SKIP 4 | PASS 32 ] ══ Skipped tests (4) ═══════════════════════════════════════════════════════════ • On CRAN (4): 'test-plot.R:44:3', 'test-plot.R:52:3', 'test-plot.R:60:3', 'test-plot.R:68:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-plot.R:26:3'): plot ──────────────────────────────────────────── Error in `dplyr::summarize(., mean = mean(.data$total), qtiles = safe_quantile(.data$total, prob = !!probs))`: i In argument: `qtiles = safe_quantile(.data$total, prob = c(0.025, 0.975))`. i In group 1: `label = "PBO"`. Caused by error: ! `qtiles` must be size 1, not 2. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─base::plot(out) at test-plot.R:26:3 2. ├─brisk:::plot.brisk_br(out) 3. │ ├─base::summary(x, reference = reference) 4. │ └─brisk:::summary.brisk_br(x, reference = reference) 5. │ └─scores %>% dplyr::group_by(.data$label) %>% ... 6. ├─dplyr::summarize(...) 7. ├─dplyr:::summarise.grouped_df(...) 8. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 9. │ └─base::withCallingHandlers(...) 10. ├─dplyr:::dplyr_internal_error(...) 11. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 12. │ └─rlang:::signal_abort(cnd, .file) 13. │ └─base::signalCondition(cnd) 14. └─dplyr (local) `<fn>`(`<dpl:::__>`) 15. └─dplyr (local) handler(cnd) 16. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-plot.R:34:3'): plot with ref ─────────────────────────────────── Error in `dplyr::summarize(., mean = mean(.data$total), qtiles = safe_quantile(.data$total, prob = !!probs))`: i In argument: `qtiles = safe_quantile(.data$total, prob = c(0.025, 0.975))`. i In group 1: `label = "TRT"`. Caused by error: ! `qtiles` must be size 1, not 2. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─base::plot(out, reference = "PBO") at test-plot.R:34:3 2. ├─brisk:::plot.brisk_br(out, reference = "PBO") 3. │ ├─base::summary(x, reference = reference) 4. │ └─brisk:::summary.brisk_br(x, reference = reference) 5. │ └─scores %>% dplyr::group_by(.data$label) %>% ... 6. ├─dplyr::summarize(...) 7. ├─dplyr:::summarise.grouped_df(...) 8. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 9. │ └─base::withCallingHandlers(...) 10. ├─dplyr:::dplyr_internal_error(...) 11. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 12. │ └─rlang:::signal_abort(cnd, .file) 13. │ └─base::signalCondition(cnd) 14. └─dplyr (local) `<fn>`(`<dpl:::__>`) 15. └─dplyr (local) handler(cnd) 16. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-summary.R:25:3'): summary() ──────────────────────────────────── Error in `dplyr::summarize(., mean = mean(.data$total), qtiles = safe_quantile(.data$total, prob = !!probs))`: i In argument: `qtiles = safe_quantile(.data$total, prob = c(0.025, 0.975))`. i In group 1: `label = "PBO"`. Caused by error: ! `qtiles` must be size 1, not 2. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-summary.R:25:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─base::summary(res) 5. ├─brisk:::summary.brisk_br(res) 6. │ └─scores %>% dplyr::group_by(.data$label) %>% ... 7. ├─dplyr::summarize(...) 8. ├─dplyr:::summarise.grouped_df(...) 9. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 10. │ └─base::withCallingHandlers(...) 11. ├─dplyr:::dplyr_internal_error(...) 12. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 13. │ └─rlang:::signal_abort(cnd, .file) 14. │ └─base::signalCondition(cnd) 15. └─dplyr (local) `<fn>`(`<dpl:::__>`) 16. └─dplyr (local) handler(cnd) 17. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) [ FAIL 3 | WARN 10 | SKIP 4 | PASS 32 ] Deleting unused snapshots: 'plot/plot-ref.png', 'plot/plot-utility-ref.png', 'plot/plot-utility-stacked-ref.png', 'plot/plot-utility-stacked.png', 'plot/plot-utility.png', and 'plot/plot.png' Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.1.0
Check: tests
Result: ERROR Running ‘testthat.R’ [10s/27s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(brisk) > > test_check("brisk") Saving _problems/test-plot-26.R Saving _problems/test-plot-34.R Saving _problems/test-summary-25.R [ FAIL 3 | WARN 10 | SKIP 4 | PASS 32 ] ══ Skipped tests (4) ═══════════════════════════════════════════════════════════ • On CRAN (4): 'test-plot.R:44:3', 'test-plot.R:52:3', 'test-plot.R:60:3', 'test-plot.R:68:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-plot.R:26:3'): plot ──────────────────────────────────────────── Error in `dplyr::summarize(., mean = mean(.data$total), qtiles = safe_quantile(.data$total, prob = !!probs))`: i In argument: `qtiles = safe_quantile(.data$total, prob = c(0.025, 0.975))`. i In group 1: `label = "PBO"`. Caused by error: ! `qtiles` must be size 1, not 2. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─base::plot(out) at test-plot.R:26:3 2. ├─brisk:::plot.brisk_br(out) 3. │ ├─base::summary(x, reference = reference) 4. │ └─brisk:::summary.brisk_br(x, reference = reference) 5. │ └─scores %>% dplyr::group_by(.data$label) %>% ... 6. ├─dplyr::summarize(...) 7. ├─dplyr:::summarise.grouped_df(...) 8. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 9. │ └─base::withCallingHandlers(...) 10. ├─dplyr:::dplyr_internal_error(...) 11. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 12. │ └─rlang:::signal_abort(cnd, .file) 13. │ └─base::signalCondition(cnd) 14. └─dplyr (local) `<fn>`(`<dpl:::__>`) 15. └─dplyr (local) handler(cnd) 16. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-plot.R:34:3'): plot with ref ─────────────────────────────────── Error in `dplyr::summarize(., mean = mean(.data$total), qtiles = safe_quantile(.data$total, prob = !!probs))`: i In argument: `qtiles = safe_quantile(.data$total, prob = c(0.025, 0.975))`. i In group 1: `label = "TRT"`. Caused by error: ! `qtiles` must be size 1, not 2. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─base::plot(out, reference = "PBO") at test-plot.R:34:3 2. ├─brisk:::plot.brisk_br(out, reference = "PBO") 3. │ ├─base::summary(x, reference = reference) 4. │ └─brisk:::summary.brisk_br(x, reference = reference) 5. │ └─scores %>% dplyr::group_by(.data$label) %>% ... 6. ├─dplyr::summarize(...) 7. ├─dplyr:::summarise.grouped_df(...) 8. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 9. │ └─base::withCallingHandlers(...) 10. ├─dplyr:::dplyr_internal_error(...) 11. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 12. │ └─rlang:::signal_abort(cnd, .file) 13. │ └─base::signalCondition(cnd) 14. └─dplyr (local) `<fn>`(`<dpl:::__>`) 15. └─dplyr (local) handler(cnd) 16. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) ── Error ('test-summary.R:25:3'): summary() ──────────────────────────────────── Error in `dplyr::summarize(., mean = mean(.data$total), qtiles = safe_quantile(.data$total, prob = !!probs))`: i In argument: `qtiles = safe_quantile(.data$total, prob = c(0.025, 0.975))`. i In group 1: `label = "PBO"`. Caused by error: ! `qtiles` must be size 1, not 2. i To return more or less than 1 row per group, use `reframe()`. Backtrace: ▆ 1. ├─testthat::expect_equal(...) at test-summary.R:25:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─base::summary(res) 5. ├─brisk:::summary.brisk_br(res) 6. │ └─scores %>% dplyr::group_by(.data$label) %>% ... 7. ├─dplyr::summarize(...) 8. ├─dplyr:::summarise.grouped_df(...) 9. │ └─dplyr:::summarise_cols(.data, dplyr_quosures(...), by, "summarise") 10. │ └─base::withCallingHandlers(...) 11. ├─dplyr:::dplyr_internal_error(...) 12. │ └─rlang::abort(class = c(class, "dplyr:::internal_error"), dplyr_error_data = data) 13. │ └─rlang:::signal_abort(cnd, .file) 14. │ └─base::signalCondition(cnd) 15. └─dplyr (local) `<fn>`(`<dpl:::__>`) 16. └─dplyr (local) handler(cnd) 17. └─rlang::abort(message, class = error_class, parent = parent, call = error_call) [ FAIL 3 | WARN 10 | SKIP 4 | PASS 32 ] Deleting unused snapshots: 'plot/plot-ref.png', 'plot/plot-utility-ref.png', 'plot/plot-utility-stacked-ref.png', 'plot/plot-utility-stacked.png', 'plot/plot-utility.png', and 'plot/plot.png' Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc