CRAN Package Check Results for Package rsmatch

Last updated on 2026-10-24 12:51:46 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.2.1 2.38 55.85 58.23 OK
r-devel-linux-x86_64-debian-gcc 0.2.1 1.91 38.36 40.27 ERROR
r-devel-linux-x86_64-fedora-clang 0.2.1 49.10 OK
r-devel-linux-x86_64-fedora-gcc 0.2.1 44.37 OK
r-devel-windows-x86_64 0.2.1 5.00 75.00 80.00 OK
r-patched-linux-x86_64 0.2.1 2.22 47.78 50.00 OK
r-release-linux-x86_64 0.2.1 2.40 47.52 49.92 OK
r-release-macos-arm64 0.2.1 1.00 19.00 20.00 OK
r-release-macos-x86_64 0.2.1 2.00 61.00 63.00 OK
r-release-windows-x86_64 0.2.1 5.00 65.00 70.00 OK
r-oldrel-macos-arm64 0.2.1 OK
r-oldrel-macos-x86_64 0.2.1 2.00 55.00 57.00 OK
r-oldrel-windows-x86_64 0.2.1 6.00 77.00 83.00 OK

Check Details

Version: 0.2.1
Check: examples
Result: ERROR Running examples in ‘rsmatch-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: coxpsmatch > ### Title: Propensity Score Matching with Time-Dependent Covariates > ### Aliases: coxpsmatch > > ### ** Examples > > if (requireNamespace("survival", quietly = TRUE) & + requireNamespace("nbpMatching", quietly = TRUE)) { + library(dplyr, quietly = TRUE) + pairs <- coxpsmatch( + n_pairs = 13, + data = oasis, + id = "subject_id", + time = "visit", + trt_time = "time_of_ad" + ) + + na.omit(pairs) + + # evaluate the first match + first_match <- pairs$subject_id[which(pairs$pair_id == 1)] + oasis %>% dplyr::filter(subject_id %in% first_match) + } Attaching package: ‘dplyr’ The following objects are masked from ‘package:stats’: filter, lag The following objects are masked from ‘package:base’: intersect, setdiff, setequal, union Warning in agreg.fit(X, Y, istrat, offset, init, control, weights = weights, : Loglik converged before variable 7 ; beta may be infinite. Error in a$specials[[i]] : subscript out of bounds Calls: coxpsmatch ... .coxps_match -> predict -> predict.coxph -> delete.response -> off Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.2.1
Check: tests
Result: ERROR Running ‘testthat.R’ [5s/6s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(rsmatch) > > test_check("rsmatch") Saving _problems/test-coxpsmatch-26.R Saving _problems/test-coxpsmatch-46.R Saving _problems/test-coxpsmatch-71.R Saving _problems/test-coxpsmatch-129.R Saving _problems/test-coxpsmatch-150.R [ FAIL 5 | WARN 0 | SKIP 2 | PASS 73 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • The package gurobi is not available. (2): 'test-brsmatch.R:205:3', 'test-brsmatch.R:483:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-coxpsmatch.R:21:5'): `coxpsmatch()` has correct output ───────── <subscriptOutOfBoundsError/error/condition> Error in `a$specials[[i]]`: subscript out of bounds Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-coxpsmatch.R:20:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─rsmatch::coxpsmatch(...) at test-coxpsmatch.R:21:5 7. └─rsmatch:::.coxps_match(data, id, time, trt_time, covariates) 8. ├─stats::predict(model) 9. └─survival:::predict.coxph(model) 10. └─stats::delete.response(Terms) 11. └─stats (local) off(a$specials[[i]]) ── Error ('test-coxpsmatch.R:43:5'): `coxpsmatch()` works when 'id' is a character vector ── <subscriptOutOfBoundsError/error/condition> Error in `a$specials[[i]]`: subscript out of bounds Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-coxpsmatch.R:42:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─rsmatch::coxpsmatch(...) at test-coxpsmatch.R:43:5 7. └─rsmatch:::.coxps_match(data, id, time, trt_time, covariates) 8. ├─stats::predict(model) 9. └─survival:::predict.coxph(model) 10. └─stats::delete.response(Terms) 11. └─stats (local) off(a$specials[[i]]) ── Error ('test-coxpsmatch.R:68:7'): `coxpsmatch()` returns warning when 'trt_time' is not numeric ── <subscriptOutOfBoundsError/error/condition> Error in `a$specials[[i]]`: subscript out of bounds Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-coxpsmatch.R:66:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─rsmatch::coxpsmatch(...) at test-coxpsmatch.R:68:7 7. └─rsmatch:::.coxps_match(data, id, time, trt_time, covariates) 8. ├─stats::predict(model) 9. └─survival:::predict.coxph(model) 10. └─stats::delete.response(Terms) 11. └─stats (local) off(a$specials[[i]]) ── Error ('test-coxpsmatch.R:126:7'): `coxpsmatch()` works when there are no never-treated individuals ── <subscriptOutOfBoundsError/error/condition> Error in `a$specials[[i]]`: subscript out of bounds Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-coxpsmatch.R:124:3 2. │ └─testthat:::quasi_capture(...) 3. │ ├─testthat (local) .capture(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 6. └─rsmatch::coxpsmatch(...) at test-coxpsmatch.R:126:7 7. └─rsmatch:::.coxps_match(data, id, time, trt_time, covariates) 8. ├─stats::predict(model) 9. └─survival:::predict.coxph(model) 10. └─stats::delete.response(Terms) 11. └─stats (local) off(a$specials[[i]]) ── Error ('test-coxpsmatch.R:149:3'): coxpsmatch works when some input are NA ── <subscriptOutOfBoundsError/error/condition> Error in `a$specials[[i]]`: subscript out of bounds Backtrace: ▆ 1. ├─coxpsmatch(n_pairs = 1, data = df1) %>% expect_warning() at test-coxpsmatch.R:149:3 2. ├─testthat::expect_warning(.) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. └─rsmatch::coxpsmatch(n_pairs = 1, data = df1) 8. └─rsmatch:::.coxps_match(data, id, time, trt_time, covariates) 9. ├─stats::predict(model) 10. └─survival:::predict.coxph(model) 11. └─stats::delete.response(Terms) 12. └─stats (local) off(a$specials[[i]]) [ FAIL 5 | WARN 0 | SKIP 2 | PASS 73 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.2.1
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘risk-set-matching-with-rsmatch.Rmd’ using rmarkdown Quitting from risk-set-matching-with-rsmatch.Rmd:105-117 [unnamed-chunk-3] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `a$specials[[i]]`: ! subscript out of bounds --- Backtrace: ▆ 1. └─rsmatch::coxpsmatch(...) 2. └─rsmatch:::.coxps_match(data, id, time, trt_time, covariates) 3. ├─stats::predict(model) 4. └─survival:::predict.coxph(model) 5. └─stats::delete.response(Terms) 6. └─stats (local) off(a$specials[[i]]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'risk-set-matching-with-rsmatch.Rmd' failed with diagnostics: subscript out of bounds --- failed re-building ‘risk-set-matching-with-rsmatch.Rmd’ SUMMARY: processing the following file failed: ‘risk-set-matching-with-rsmatch.Rmd’ Error: Vignette re-building failed. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc