Package: recforest Check: tests New result: ERROR Running ‘testthat.R’ [69s/69s] 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") since n_bootstrap is not provided, it is set to 2/3 of the sample size: 269 Using sequential processing for training training tree 1/2 [1] "creating terminal node #1" training tree 2/2 [1] "creating terminal node #1" Saving _problems/test-train_forest-300.R Saving _problems/test-train_forest-315.R Saving _problems/test-train_forest-337.R since n_bootstrap is not provided, it is set to 2/3 of the sample size: 269 [ FAIL 3 | WARN 0 | SKIP 1 | PASS 61 ] ══ Skipped tests (1) ═══════════════════════════════════════════════════════════ • On CRAN (1): 'test-golden_master.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Failure ('test-train_forest.R:285:5'): train_forest and predict_forest works with method GL ── Expected `trained_forest$metrics` to equal `structure(...)`. Differences: actual vs expected c_index mse_imse mse_iscore - actual[1, ] 0.7843743 18517.19 376.8388 + expected[1, ] 0.7852244 18519.40 374.6235 `actual$c_index`: 0.78437 `expected$c_index`: 0.78522 `actual$mse_imse`: 18517.2 `expected$mse_imse`: 18519.4 `actual$mse_iscore`: 376.8 `expected$mse_iscore`: 374.6 Backtrace: ▆ 1. ├─withr::with_seed(...) at test-train_forest.R:251:3 2. │ └─withr::with_preserve_seed(...) 3. └─testthat::expect_equal(...) at test-train_forest.R:285:5 ── Failure ('test-train_forest.R:301:5'): train_forest and predict_forest works with method GL ── Expected `trained_forest$tree_metrics` to equal `list(...)`. Differences: `actual[[1]]$c_index`: 0.794279 `expected[[1]]$c_index`: 0.794180 `actual[[1]]$mse_imse`: 18613.5 `expected[[1]]$mse_imse`: 18618.2 `actual[[1]]$mse_iscore`: 280.6 `expected[[1]]$mse_iscore`: 275.9 `actual[[2]]$c_index`: 0.7745 `expected[[2]]$c_index`: 0.7763 `actual[[2]]$mse_imse`: 18420.88 `expected[[2]]$mse_imse`: 18420.66 `actual[[2]]$mse_iscore`: 473.11 `expected[[2]]$mse_iscore`: 473.34 Backtrace: ▆ 1. ├─withr::with_seed(...) at test-train_forest.R:251:3 2. │ └─withr::with_preserve_seed(...) 3. └─testthat::expect_equal(...) at test-train_forest.R:301:5 ── Failure ('test-train_forest.R:323:5'): train_forest and predict_forest works with method GL ── Expected `predictions[1:10]` to equal `c(...)`. Differences: actual | expected [1] 0.076394850 | 0.076394850 [1] [2] 0.671167690 - 0.670711027 [2] [3] 1.097814648 - 1.094352976 [3] [4] 0.697723088 - 0.697103214 [4] [5] 1.142139822 - 1.138279300 [5] [6] 0.047180539 | 0.047180539 [6] [7] 0.936614157 - 0.934632879 [7] [8] 0.390103568 - 0.390142244 [8] [9] 0.557216721 - 0.557213915 [9] [10] 0.850929439 - 0.849408106 [10] Backtrace: ▆ 1. ├─withr::with_seed(...) at test-train_forest.R:251:3 2. │ └─withr::with_preserve_seed(...) 3. └─testthat::expect_equal(...) at test-train_forest.R:323:5 [ FAIL 3 | WARN 0 | SKIP 1 | PASS 61 ] Error: ! Test failures. Execution halted