CRAN Package Check Results for Package maicplus

Last updated on 2026-10-24 01:51:38 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.2 11.12 214.12 225.24 OK
r-devel-linux-x86_64-debian-gcc 0.1.2 8.44 152.22 160.66 ERROR
r-devel-linux-x86_64-fedora-clang 0.1.2 10.00 179.79 189.79 OK
r-devel-linux-x86_64-fedora-gcc 0.1.2 155.25 OK
r-devel-windows-x86_64 0.1.2 13.00 235.00 248.00 OK
r-patched-linux-x86_64 0.1.2 12.67 202.04 214.71 OK
r-release-linux-x86_64 0.1.2 10.65 202.29 212.94 OK
r-release-macos-arm64 0.1.2 3.00 61.00 64.00 OK
r-release-macos-x86_64 0.1.2 8.00 266.00 274.00 OK
r-release-windows-x86_64 0.1.2 13.00 220.00 233.00 OK
r-oldrel-macos-arm64 0.1.2 OK
r-oldrel-macos-x86_64 0.1.2 7.00 205.00 212.00 OK
r-oldrel-windows-x86_64 0.1.2 18.00 287.00 305.00 OK

Check Details

Version: 0.1.2
Check: examples
Result: ERROR Running examples in ‘maicplus-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: ph_diagplot > ### Title: Diagnosis plot of proportional hazard assumption for anchored > ### and unanchored > ### Aliases: ph_diagplot > > ### ** Examples > > # unanchored example using ph_diagplot > data(weighted_sat) > data(adtte_sat) > data(pseudo_ipd_sat) > > ph_diagplot( + weights_object = weighted_sat, + tte_ipd = adtte_sat, + tte_pseudo_ipd = pseudo_ipd_sat, + trt_var_ipd = "ARM", + trt_var_agd = "ARM", + trt_ipd = "A", + trt_agd = "B", + trt_common = NULL, + endpoint_name = "Overall Survival", + time_scale = "week", + zph_transform = "log", + zph_log_hazard = TRUE + ) Error in a$specials[[i]] : subscript out of bounds Calls: ph_diagplot ... model.matrix -> model.matrix.coxph -> delete.response -> off Execution halted Examples with CPU (user + system) or elapsed time > 5s user system elapsed kmplot2 10.436 0.245 12.247 Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.1.2
Check: tests
Result: ERROR Running ‘testthat.R’ [24s/27s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > pkg_name <- "maicplus" > library(pkg_name, character.only = TRUE) > testthat::test_check(pkg_name) result pvalue "-0.17[-0.61; 0.28]" "0.535" NULL NULL NULL NULL Saving _problems/test-plot_km-143.R Saving _problems/test-plot_km-162.R Saving _problems/test-plot_km-182.R Saving _problems/test-plot_km-201.R Saving _problems/test-plot_km-247.R Saving _problems/test-plot_km-258.R Ignoring unknown labels: * colour : "Treatment" Ignoring unknown labels: * colour : "Treatment" Ignoring unknown labels: * colour : "Treatment" Ignoring unknown labels: * colour : "Treatment" Ignoring unknown labels: * colour : "Treatment" Ignoring unknown labels: * colour : "Treatment" [ FAIL 6 | WARN 0 | SKIP 14 | PASS 82 ] ══ Skipped tests (14) ══════════════════════════════════════════════════════════ • On CRAN (14): 'test-maic_anchored.R:1:1', 'test-maic_anchored.R:69:1', 'test-maic_unanchored.R:1:1', 'test-maic_unanchored.R:164:1', 'test-matching.R:192:1', 'test-matching.R:220:1', 'test-matching.R:233:1', 'test-matching.R:261:1', 'test-plot_km.R:1:1', 'test-plot_km.R:32:1', 'test-plot_km.R:64:1', 'test-plot_km.R:96:1', 'test-plot_km.R:206:1', 'test-plot_km2.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-plot_km.R:128:3'): ph_diagplot works for anchored data ─────── Expected `ph_diagplot(...)` not to throw any errors. Actually got a <subscriptOutOfBoundsError> with message: subscript out of bounds ── Error ('test-plot_km.R:149:7'): ph_diagplot works for anchored data ───────── <subscriptOutOfBoundsError/error/condition> Error in `a$specials[[i]]`: subscript out of bounds Backtrace: ▆ 1. └─vdiffr::expect_doppelganger(...) at test-plot_km.R:146:3 2. └─vdiffr (local) writer(fig, testcase, title) 3. ├─vdiffr:::print_plot(plot, title) 4. └─vdiffr:::print_plot.function(plot, title) 5. └─maicplus (local) p() 6. └─maicplus::ph_diagplot(...) at test-plot_km.R:149:7 7. └─survival::cox.zph(coxobj2, transform = zph_transform, global = FALSE) 8. └─survival:::coxph.getdata(...) 9. ├─stats::model.matrix(fit, data = mf) 10. └─survival:::model.matrix.coxph(fit, data = mf) 11. └─stats::delete.response(object$terms) 12. └─stats (local) off(a$specials[[i]]) ── Failure ('test-plot_km.R:168:3'): ph_diagplot works for unanchored data ───── Expected `ph_diagplot(...)` not to throw any errors. Actually got a <subscriptOutOfBoundsError> with message: subscript out of bounds ── Error ('test-plot_km.R:188:7'): ph_diagplot works for unanchored data ─────── <subscriptOutOfBoundsError/error/condition> Error in `a$specials[[i]]`: subscript out of bounds Backtrace: ▆ 1. └─vdiffr::expect_doppelganger(...) at test-plot_km.R:185:3 2. └─vdiffr (local) writer(fig, testcase, title) 3. ├─vdiffr:::print_plot(plot, title) 4. └─vdiffr:::print_plot.function(plot, title) 5. └─maicplus (local) p() 6. └─maicplus::ph_diagplot(...) at test-plot_km.R:188:7 7. └─survival::cox.zph(coxobj2, transform = zph_transform, global = FALSE) 8. └─survival:::coxph.getdata(...) 9. ├─stats::model.matrix(fit, data = mf) 10. └─survival:::model.matrix.coxph(fit, data = mf) 11. └─stats::delete.response(object$terms) 12. └─stats (local) off(a$specials[[i]]) ── Failure ('test-plot_km.R:241:3'): ph_diagplot_schoenfeld works without error ── Expected `ph_diagplot_schoenfeld(...)` not to throw any errors. Actually got a <subscriptOutOfBoundsError> with message: subscript out of bounds ── Error ('test-plot_km.R:254:7'): ph_diagplot_schoenfeld works without error ── <subscriptOutOfBoundsError/error/condition> Error in `a$specials[[i]]`: subscript out of bounds Backtrace: ▆ 1. └─vdiffr::expect_doppelganger(...) at test-plot_km.R:251:3 2. └─vdiffr (local) writer(fig, testcase, title) 3. ├─vdiffr:::print_plot(plot, title) 4. └─vdiffr:::print_plot.function(plot, title) 5. └─maicplus (local) p() 6. └─maicplus::ph_diagplot_schoenfeld(...) at test-plot_km.R:254:7 7. ├─stats::residuals(coxobj, type = "schoenfeld") 8. └─survival:::residuals.coxph(coxobj, type = "schoenfeld") 9. └─survival:::coxph.getdata(object, y = TRUE, x = TRUE, stratax = TRUE) 10. ├─stats::model.matrix(fit, data = mf) 11. └─survival:::model.matrix.coxph(fit, data = mf) 12. └─stats::delete.response(object$terms) 13. └─stats (local) off(a$specials[[i]]) [ FAIL 6 | WARN 0 | SKIP 14 | PASS 82 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc