CRAN Package Check Results for Package simevent

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

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1.1 23.29 105.69 128.98 OK
r-devel-linux-x86_64-debian-gcc 0.1.1 18.74 74.03 92.77 ERROR
r-devel-linux-x86_64-fedora-clang 0.1.1 22.00 93.68 115.68 OK
r-devel-linux-x86_64-fedora-gcc 0.1.1 20.00 69.11 89.11 OK
r-devel-windows-x86_64 0.1.1 33.00 187.00 220.00 OK
r-patched-linux-x86_64 0.1.1 25.71 85.93 111.64 OK
r-release-linux-x86_64 0.1.1 26.48 87.77 114.25 OK
r-release-macos-arm64 0.1.1 6.00 25.00 31.00 OK
r-release-macos-x86_64 0.1.1 16.00 108.00 124.00 OK
r-release-windows-x86_64 0.1.1 31.00 118.00 149.00 OK
r-oldrel-macos-arm64 0.1.1 5.00 24.00 29.00 OK
r-oldrel-macos-x86_64 0.1.1 19.00 172.00 191.00 OK
r-oldrel-windows-x86_64 0.1.1 39.00 148.00 187.00 OK

Check Details

Version: 0.1.1
Check: examples
Result: ERROR Running examples in ‘simevent-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: simEventCox > ### Title: Simulate Event History Data Based on Cox Models > ### Aliases: simEventCox > > ### ** Examples > > # The observed data > data_obs <- simDisease(N = 1000) > data_obs <- IntFormatData(data_obs, N_cols = 6) > > # Fit Cox models > cox_death <- survival::coxph(survival::Surv(tstart, tstop, Delta == 1) + ~ L0 + A0 + L, data = data_obs) > cox_Disease <- survival::coxph(survival::Surv(tstart, tstop, Delta == 2) + ~ L0 + A0, data = data_obs[L == 0]) > > # Then simulate new data: > cox_fits <- list("D" = cox_death, "L" = cox_Disease) > list_old_vars <- list("L0" = data_obs$L0, "A0" = data_obs$A0) > new_data <- simEventCox(100, cox_fits = cox_fits, list_old_vars = list_old_vars) Error in a$specials[[i]] : subscript out of bounds Calls: simEventCox ... survfit.coxph -> model.matrix.coxph -> delete.response -> off Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.1.1
Check: tests
Result: ERROR Running ‘testthat.R’ [10s/11s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # 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(simevent) > > test_check("simevent") Saving _problems/test-simEventCox-20.R [ FAIL 1 | WARN 0 | SKIP 0 | PASS 114 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-simEventCox.R:19:3'): simEventCox simulates data in the right way ── <subscriptOutOfBoundsError/error/condition> Error in `a$specials[[i]]`: subscript out of bounds Backtrace: ▆ 1. └─simevent::simEventCox(...) at test-simEventCox.R:19:3 2. └─base::lapply(cox_fits, function(model) basehaz(model, centered = FALSE)) 3. └─simevent (local) FUN(X[[i]], ...) 4. └─survival::basehaz(model, centered = FALSE) 5. ├─survival::survfit(fit, se.fit = FALSE) 6. └─survival:::survfit.coxph(fit, se.fit = FALSE) 7. └─survival:::model.matrix.coxph(object, data = mf) 8. └─stats::delete.response(object$terms) 9. └─stats (local) off(a$specials[[i]]) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 114 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc