CRAN Package Check Results for Package recforest

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

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.0.2 10.59 248.08 258.67 OK
r-devel-linux-x86_64-debian-gcc 1.0.2 8.36 98.01 106.37 ERROR
r-devel-linux-x86_64-fedora-clang 1.0.2 11.00 202.23 213.23 OK
r-devel-linux-x86_64-fedora-gcc 1.0.2 173.16 OK
r-devel-windows-x86_64 1.0.2 14.00 256.00 270.00 OK
r-patched-linux-x86_64 1.0.2 10.16 231.04 241.20 OK
r-release-linux-x86_64 1.0.2 9.34 227.67 237.01 OK
r-release-macos-arm64 1.0.2 3.00 58.00 61.00 OK
r-release-macos-x86_64 1.0.2 8.00 256.00 264.00 OK
r-release-windows-x86_64 1.0.2 14.00 243.00 257.00 OK
r-oldrel-macos-arm64 1.0.2 3.00 74.00 77.00 OK
r-oldrel-macos-x86_64 1.0.2 8.00 362.00 370.00 OK
r-oldrel-windows-x86_64 1.0.2 16.00 318.00 334.00 OK

Check Details

Version: 1.0.2
Check: tests
Result: ERROR Running ‘testthat.R’ [23s/29s] 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(recforest) > > test_check("recforest") Saving _problems/test-golden_master-5.R since n_bootstrap is not provided, it is set to 2/3 of the sample size: 269 Saving _problems/test-s3_recforest-30.R Saving _problems/test-train_forest-184.R Using sequential processing for training training tree 1/2 [1] "creating terminal node #1" Saving _problems/test-train_forest-277.R since n_bootstrap is not provided, it is set to 2/3 of the sample size: 269 Saving _problems/test-train_forest_utils-67.R [ FAIL 5 | WARN 0 | SKIP 0 | PASS 27 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-golden_master.R:3:5'): golden_master works ───────────────────── Error in `a$specials[[i]]`: subscript out of bounds Backtrace: ▆ 1. ├─base::source("golden_master.R") 2. │ ├─base::withVisible(eval(ei, envir)) 3. │ └─base::eval(ei, envir) 4. │ └─base::eval(ei, envir) 5. └─recforest::train_forest(...) 6. ├─base::do.call(what = loop_fun, args = args) 7. └─base (local) `<fn>`(X = `<int>`, FUN = `<fn>`) 8. └─recforest (local) FUN(X[[i]], ...) 9. └─recforest:::train_tree_and_calculate_metrics(...) 10. └─recforest:::mse_2(true_vals) 11. └─recforest:::np_estimate(...) 12. ├─survival::survfit(NPfit, type = "aalen") 13. └─survival:::survfit.coxph(NPfit, type = "aalen") 14. └─survival:::model.matrix.coxph(object, data = mf) 15. └─stats::delete.response(object$terms) 16. └─stats (local) off(a$specials[[i]]) ── Error ('test-s3_recforest.R:13:5'): s3 methods for recforest works ────────── <subscriptOutOfBoundsError/error/condition> Error in `a$specials[[i]]`: subscript out of bounds Backtrace: ▆ 1. ├─withr::with_seed(...) at test-s3_recforest.R:5:3 2. │ └─withr::with_preserve_seed(...) 3. ├─base::suppressWarnings(...) at test-s3_recforest.R:13:5 4. │ └─base::withCallingHandlers(...) 5. └─recforest::train_forest(...) 6. ├─base::do.call(what = loop_fun, args = args) 7. └─base (local) `<fn>`(X = `<int>`, FUN = `<fn>`) 8. └─recforest (local) FUN(X[[i]], ...) 9. └─recforest:::train_tree_and_calculate_metrics(...) 10. └─recforest:::mse_2(true_vals) 11. └─recforest:::np_estimate(...) 12. ├─survival::survfit(NPfit, type = "aalen") 13. └─survival:::survfit.coxph(NPfit, type = "aalen") 14. └─survival:::model.matrix.coxph(object, data = mf) 15. └─stats::delete.response(object$terms) 16. └─stats (local) off(a$specials[[i]]) ── Error ('test-train_forest.R:164:5'): train_forest and predict_forest works with method NAa ── <subscriptOutOfBoundsError/error/condition> Error in `a$specials[[i]]`: subscript out of bounds Backtrace: ▆ 1. ├─withr::with_seed(...) at test-train_forest.R:154:3 2. │ └─withr::with_preserve_seed(...) 3. ├─testthat::expect_message(...) at test-train_forest.R:164:5 4. │ └─testthat:::expect_condition_matching_(...) 5. │ └─testthat:::quasi_capture(...) 6. │ ├─testthat (local) .capture(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 9. ├─base::suppressWarnings(...) 10. │ └─base::withCallingHandlers(...) 11. └─recforest::train_forest(...) 12. ├─base::do.call(what = loop_fun, args = args) 13. └─base (local) `<fn>`(X = `<int>`, FUN = `<fn>`) 14. └─recforest (local) FUN(X[[i]], ...) 15. └─recforest:::train_tree_and_calculate_metrics(...) 16. └─recforest:::mse_2(true_vals) 17. └─recforest:::np_estimate(...) 18. ├─survival::survfit(NPfit, type = "aalen") 19. └─survival:::survfit.coxph(NPfit, type = "aalen") 20. └─survival:::model.matrix.coxph(object, data = mf) 21. └─stats::delete.response(object$terms) 22. └─stats (local) off(a$specials[[i]]) ── Error ('test-train_forest.R:259:5'): train_forest and predict_forest works with method GL ── <subscriptOutOfBoundsError/error/condition> Error in `a$specials[[i]]`: subscript out of bounds Backtrace: ▆ 1. ├─withr::with_seed(...) at test-train_forest.R:251:3 2. │ └─withr::with_preserve_seed(...) 3. ├─base::suppressWarnings(...) at test-train_forest.R:259:5 4. │ └─base::withCallingHandlers(...) 5. └─recforest::train_forest(...) 6. ├─base::do.call(what = loop_fun, args = args) 7. └─base (local) `<fn>`(X = `<int>`, FUN = `<fn>`) 8. └─recforest (local) FUN(X[[i]], ...) 9. └─recforest:::train_tree_and_calculate_metrics(...) 10. └─recforest:::mse_2(true_vals) 11. └─recforest:::np_estimate(...) 12. ├─survival::survfit(NPfit, type = "aalen") 13. └─survival:::survfit.coxph(NPfit, type = "aalen") 14. └─survival:::model.matrix.coxph(object, data = mf) 15. └─stats::delete.response(object$terms) 16. └─stats (local) off(a$specials[[i]]) ── Error ('test-train_forest_utils.R:50:5'): get_n_nodes works ───────────────── <subscriptOutOfBoundsError/error/condition> Error in `a$specials[[i]]`: subscript out of bounds Backtrace: ▆ 1. ├─withr::with_seed(...) at test-train_forest_utils.R:42:3 2. │ └─withr::with_preserve_seed(...) 3. ├─base::suppressWarnings(...) at test-train_forest_utils.R:50:5 4. │ └─base::withCallingHandlers(...) 5. └─recforest::train_forest(...) 6. ├─base::do.call(what = loop_fun, args = args) 7. └─base (local) `<fn>`(X = `<int>`, FUN = `<fn>`) 8. └─recforest (local) FUN(X[[i]], ...) 9. └─recforest:::train_tree_and_calculate_metrics(...) 10. └─recforest:::mse_2(true_vals) 11. └─recforest:::np_estimate(...) 12. ├─survival::survfit(NPfit, type = "aalen") 13. └─survival:::survfit.coxph(NPfit, type = "aalen") 14. └─survival:::model.matrix.coxph(object, data = mf) 15. └─stats::delete.response(object$terms) 16. └─stats (local) off(a$specials[[i]]) [ FAIL 5 | WARN 0 | SKIP 0 | PASS 27 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.0.2
Check: re-building of vignette outputs
Result: ERROR Error(s) in re-building vignettes: ... --- re-building ‘explain.Rmd’ using rmarkdown [WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead. --- finished re-building ‘explain.Rmd’ --- re-building ‘method.Rmd’ using rmarkdown [WARNING] Deprecated: --mathjax. Use --math-method=mathjax[:URL] instead. --- finished re-building ‘method.Rmd’ --- re-building ‘predict.Rmd’ using rmarkdown Quitting from predict.Rmd:49-69 [unnamed-chunk-3] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `a$specials[[i]]`: ! subscript out of bounds --- Backtrace: ▆ 1. └─recforest::train_forest(...) 2. ├─base::do.call(what = loop_fun, args = args) 3. └─base (local) `<fn>`(X = `<int>`, FUN = `<fn>`) 4. └─recforest (local) FUN(X[[i]], ...) 5. └─recforest:::train_tree_and_calculate_metrics(...) 6. └─recforest:::mse_2(true_vals) 7. └─recforest:::np_estimate(...) 8. ├─survival::survfit(NPfit, type = "aalen") 9. └─survival:::survfit.coxph(NPfit, type = "aalen") 10. └─survival:::model.matrix.coxph(object, data = mf) 11. └─stats::delete.response(object$terms) 12. └─stats (local) off(a$specials[[i]]) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'predict.Rmd' failed with diagnostics: subscript out of bounds --- failed re-building ‘predict.Rmd’ SUMMARY: processing the following file failed: ‘predict.Rmd’ Error: Vignette re-building failed. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc