* using log directory 'd:/Rcompile/CRANpkg/local/4.4/recforest.Rcheck' * using R version 4.4.3 (2025-02-28 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'recforest/DESCRIPTION' ... OK * this is package 'recforest' version '1.0.0' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'recforest' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [4s] OK * checking whether the package can be loaded with stated dependencies ... [3s] OK * checking whether the package can be unloaded cleanly ... [3s] OK * checking whether the namespace can be loaded with stated dependencies ... [3s] OK * checking whether the namespace can be unloaded cleanly ... [4s] OK * checking loading without being on the library search path ... [4s] OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [10s] OK * checking Rd files ... [1s] OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... [0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [12s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [181s] ERROR Running 'testthat.R' [181s] 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [18s] OK * checking PDF version of manual ... [17s] OK * checking HTML version of manual ... [2s] OK * DONE Status: 1 ERROR