Last updated on 2026-10-24 15:51:39 CEST.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 1.1.0 | 19.09 | 151.98 | 171.07 | OK | |
| r-devel-linux-x86_64-debian-gcc | 1.1.0 | 13.43 | 101.96 | 115.39 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 1.1.0 | 14.00 | 99.78 | 113.78 | OK | |
| r-devel-linux-x86_64-fedora-gcc | 1.1.0 | 14.00 | 99.77 | 113.77 | OK | |
| r-devel-windows-x86_64 | 1.1.0 | 23.00 | 137.00 | 160.00 | OK | |
| r-patched-linux-x86_64 | 1.1.0 | 20.81 | 134.97 | 155.78 | OK | |
| r-release-linux-x86_64 | 1.1.0 | 19.23 | 135.11 | 154.34 | OK | |
| r-release-macos-arm64 | 1.1.0 | 5.00 | 37.00 | 42.00 | OK | |
| r-release-macos-x86_64 | 1.1.0 | 14.00 | 147.00 | 161.00 | OK | |
| r-release-windows-x86_64 | 1.1.0 | 33.00 | 129.00 | 162.00 | OK | |
| r-oldrel-macos-arm64 | 1.1.0 | 4.00 | 41.00 | 45.00 | OK | |
| r-oldrel-macos-x86_64 | 1.1.0 | 14.00 | 154.00 | 168.00 | OK | |
| r-oldrel-windows-x86_64 | 1.1.0 | 30.00 | 168.00 | 198.00 | OK |
Version: 1.1.0
Check: examples
Result: ERROR
Running examples in ‘ReSurv-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: ReSurv
> ### Title: Fit 'ReSurv' models on the individual data.
> ### Aliases: ReSurv ReSurv.default ReSurv.IndividualDataPP
>
> ### ** Examples
>
>
> input_data_0 <- data_generator(
+ random_seed = 1964,
+ scenario = "alpha",
+ time_unit = 1,
+ years = 4,
+ period_exposure = 100)
>
> individual_data <- IndividualDataPP(data = input_data_0,
+ categorical_features = "claim_type",
+ continuous_features = "AP",
+ accident_period = "AP",
+ calendar_period = "RP",
+ input_time_granularity = "years",
+ output_time_granularity = "years",
+ years=4)
>
>
> resurv_fit_cox <- ReSurv(individual_data,
+ hazard_model = "COX",
+ eta = 0)
Error in a$specials[[i]] : subscript out of bounds
Calls: ReSurv ... ReSurv.IndividualDataPP -> predict -> predict.coxph -> delete.response -> off
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [8s/9s]
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(ReSurv)
>
> test_check("ReSurv")
Saving _problems/test_api_smoke-19.R
Saving _problems/test_api_smoke-45.R
Saving _problems/test_api_smoke-71.R
Saving _problems/test_api_smoke-97.R
Saving _problems/test_api_smoke-123.R
Saving _problems/test_api_smoke-150.R
Saving _problems/test_likelihood_hand_computed-67.R
[ FAIL 7 | WARN 0 | SKIP 2 | PASS 49 ]
══ Skipped tests (2) ═══════════════════════════════════════════════════════════
• On CRAN (1): 'test_api_smoke.R:209:3'
• inherits(fit, "try-error") is TRUE (1): 'test_api_smoke.R:200:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_api_smoke.R:19:3'): API smoke test: COX with no covariates and conversion_factor = 1 ──
<subscriptOutOfBoundsError/error/condition>
Error in `a$specials[[i]]`: subscript out of bounds
Backtrace:
▆
1. ├─base::suppressWarnings(ReSurv(idata, hazard_model = "COX", eta = 0)) at test_api_smoke.R:19:3
2. │ └─base::withCallingHandlers(...)
3. ├─ReSurv::ReSurv(idata, hazard_model = "COX", eta = 0)
4. └─ReSurv:::ReSurv.IndividualDataPP(...)
5. ├─stats::predict(cox, newdata = newdata, type = "lp", reference = "zero")
6. └─survival:::predict.coxph(...)
7. └─stats::delete.response(Terms)
8. └─stats (local) off(a$specials[[i]])
── Error ('test_api_smoke.R:45:3'): API smoke test: COX with categorical covariates only ──
<subscriptOutOfBoundsError/error/condition>
Error in `a$specials[[i]]`: subscript out of bounds
Backtrace:
▆
1. ├─base::suppressWarnings(ReSurv(idata, hazard_model = "COX", eta = 0)) at test_api_smoke.R:45:3
2. │ └─base::withCallingHandlers(...)
3. ├─ReSurv::ReSurv(idata, hazard_model = "COX", eta = 0)
4. └─ReSurv:::ReSurv.IndividualDataPP(...)
5. ├─stats::predict(cox, newdata = newdata, type = "lp", reference = "zero")
6. └─survival:::predict.coxph(...)
7. └─stats::delete.response(Terms)
8. └─stats (local) off(a$specials[[i]])
── Error ('test_api_smoke.R:71:3'): API smoke test: COX with continuous covariates only ──
<subscriptOutOfBoundsError/error/condition>
Error in `a$specials[[i]]`: subscript out of bounds
Backtrace:
▆
1. ├─base::suppressWarnings(ReSurv(idata, hazard_model = "COX", eta = 0)) at test_api_smoke.R:71:3
2. │ └─base::withCallingHandlers(...)
3. ├─ReSurv::ReSurv(idata, hazard_model = "COX", eta = 0)
4. └─ReSurv:::ReSurv.IndividualDataPP(...)
5. ├─stats::predict(cox, newdata = newdata, type = "lp", reference = "zero")
6. └─survival:::predict.coxph(...)
7. └─stats::delete.response(Terms)
8. └─stats (local) off(a$specials[[i]])
── Error ('test_api_smoke.R:97:3'): API smoke test: COX with AP_i as covariate ──
<subscriptOutOfBoundsError/error/condition>
Error in `a$specials[[i]]`: subscript out of bounds
Backtrace:
▆
1. ├─base::suppressWarnings(ReSurv(idata, hazard_model = "COX", eta = 0)) at test_api_smoke.R:97:3
2. │ └─base::withCallingHandlers(...)
3. ├─ReSurv::ReSurv(idata, hazard_model = "COX", eta = 0)
4. └─ReSurv:::ReSurv.IndividualDataPP(...)
5. ├─stats::predict(cox, newdata = newdata, type = "lp", reference = "zero")
6. └─survival:::predict.coxph(...)
7. └─stats::delete.response(Terms)
8. └─stats (local) off(a$specials[[i]])
── Error ('test_api_smoke.R:123:3'): API smoke test: COX with mixed covariates ──
<subscriptOutOfBoundsError/error/condition>
Error in `a$specials[[i]]`: subscript out of bounds
Backtrace:
▆
1. ├─base::suppressWarnings(ReSurv(idata, hazard_model = "COX", eta = 0)) at test_api_smoke.R:123:3
2. │ └─base::withCallingHandlers(...)
3. ├─ReSurv::ReSurv(idata, hazard_model = "COX", eta = 0)
4. └─ReSurv:::ReSurv.IndividualDataPP(...)
5. ├─stats::predict(cox, newdata = newdata, type = "lp", reference = "zero")
6. └─survival:::predict.coxph(...)
7. └─stats::delete.response(Terms)
8. └─stats (local) off(a$specials[[i]])
── Error ('test_api_smoke.R:150:3'): API smoke test: COX with conversion_factor != 1 predicts successfully ──
<subscriptOutOfBoundsError/error/condition>
Error in `a$specials[[i]]`: subscript out of bounds
Backtrace:
▆
1. ├─base::suppressWarnings(ReSurv(idata, hazard_model = "COX", eta = 0)) at test_api_smoke.R:150:3
2. │ └─base::withCallingHandlers(...)
3. ├─ReSurv::ReSurv(idata, hazard_model = "COX", eta = 0)
4. └─ReSurv:::ReSurv.IndividualDataPP(...)
5. ├─stats::predict(cox, newdata = newdata, type = "lp", reference = "zero")
6. └─survival:::predict.coxph(...)
7. └─stats::delete.response(Terms)
8. └─stats (local) off(a$specials[[i]])
── Error ('test_likelihood_hand_computed.R:63:3'): hand-computed Efron likelihood matches package likelihood ──
<subscriptOutOfBoundsError/error/condition>
Error in `a$specials[[i]]`: subscript out of bounds
Backtrace:
▆
1. └─ReSurv:::evaluate_lkh_cox(...) at test_likelihood_hand_computed.R:63:3
2. ├─stats::predict(model$cox, ds_train_m)
3. └─survival:::predict.coxph(model$cox, ds_train_m)
4. └─stats::delete.response(Terms)
5. └─stats (local) off(a$specials[[i]])
[ FAIL 7 | WARN 0 | SKIP 2 | PASS 49 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 1.1.0
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘getting-started.Rmd’ using rmarkdown
Quitting from getting-started.Rmd:48-53 [cox]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `a$specials[[i]]`:
! subscript out of bounds
---
Backtrace:
▆
1. ├─ReSurv::ReSurv(individual, hazard_model = "COX", eta = 0)
2. └─ReSurv:::ReSurv.IndividualDataPP(...)
3. ├─stats::predict(cox, newdata = newdata, type = "lp", reference = "zero")
4. └─survival:::predict.coxph(...)
5. └─stats::delete.response(Terms)
6. └─stats (local) off(a$specials[[i]])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'getting-started.Rmd' failed with diagnostics:
subscript out of bounds
--- failed re-building ‘getting-started.Rmd’
SUMMARY: processing the following file failed:
‘getting-started.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc