- using R Under development (unstable) (2025-12-07 r89119)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 21.1.6 (2)
Debian flang version 21.1.6 (2)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘FastRet/DESCRIPTION’ ... OK
- this is package ‘FastRet’ version ‘1.1.4’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] OK
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘FastRet’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [5s/7s] OK
- checking whether the package can be loaded with stated dependencies ... [4s/5s] OK
- checking whether the package can be unloaded cleanly ... [4s/6s] OK
- checking whether the namespace can be loaded with stated dependencies ... [5s/6s] OK
- checking whether the namespace can be unloaded cleanly ... [5s/6s] OK
- checking loading without being on the library search path ... [5s/7s] OK
- checking whether startup messages can be suppressed ... [5s/6s] 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 ... [27s/35s] OK
- checking Rd files ... [0s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... [14s/18s] OK
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
adjust_frm 3.502 0.194 5.009
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [39s/27s] ERROR
Running ‘testthat.R’ [38s/27s]
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(FastRet)
>
> test_check("FastRet")
Starting 2 test processes.
Saving _problems/test-train_frm-gbtree-11.R
Saving _problems/test-fit_gbtree-8.R
Saving _problems/test-fit_gbtree-16.R
> test-plot_frm.R: [1;30m2025-12-08 17:21:11.25 [0m Starting training of a lasso model
> test-plot_frm.R: [1;30m2025-12-08 17:21:11.25 [0m Mocking is enabled. Returning 'mockdata/lasso_model.rds'
> test-plot_frm.R: [1;30m2025-12-08 17:21:11.40 [0m Starting training of a lasso model
> test-plot_frm.R: [1;30m2025-12-08 17:21:11.41 [0m Mocking is enabled. Returning 'mockdata/lasso_model.rds'
> test-plot_frm.R: [1;30m2025-12-08 17:21:11.41 [0m Starting model Adjustment
> test-plot_frm.R: [1;30m2025-12-08 17:21:11.41 [0m dim(original_data): 442 x 126
> test-plot_frm.R: [1;30m2025-12-08 17:21:11.41 [0m dim(new_data): 25 x 3
> test-plot_frm.R: [1;30m2025-12-08 17:21:11.53 [0m predictors: 1, 2, 3, 4, 5, 6
> test-plot_frm.R: [1;30m2025-12-08 17:21:11.53 [0m nfolds: 5
> test-plot_frm.R: [1;30m2025-12-08 17:21:11.53 [0m Preprocessing data
> test-plot_frm.R: [1;30m2025-12-08 17:21:11.54 [0m Formula: RT_ADJ ~ RT + I(RT^2) + I(RT^3) + log(RT) + exp(RT) + sqrt(RT)
> test-plot_frm.R: [1;30m2025-12-08 17:21:11.54 [0m Estimating performance of adjusted model in CV
> test-plot_frm.R: [1;30m2025-12-08 17:21:11.61 [0m Fitting adjustment model on full new data set
> test-plot_frm.R: [1;30m2025-12-08 17:21:11.61 [0m Returning adjusted frm object
> test-adjust_frm.R: [1;30m2025-12-08 17:21:11.86 [0m Starting model Adjustment
> test-adjust_frm.R: [1;30m2025-12-08 17:21:11.86 [0m dim(original_data): 442 x 126
> test-adjust_frm.R: [1;30m2025-12-08 17:21:11.86 [0m dim(new_data): 25 x 3
> test-adjust_frm.R: [1;30m2025-12-08 17:21:11.86 [0m predictors: 1, 2
> test-adjust_frm.R: [1;30m2025-12-08 17:21:11.86 [0m nfolds: 5
> test-adjust_frm.R: [1;30m2025-12-08 17:21:11.86 [0m Preprocessing data
> test-adjust_frm.R: [1;30m2025-12-08 17:21:11.87 [0m Formula: RT_ADJ ~ RT + I(RT^2)
> test-adjust_frm.R: [1;30m2025-12-08 17:21:11.87 [0m Estimating performance of adjusted model in CV
> test-adjust_frm.R: [1;30m2025-12-08 17:21:11.92 [0m Fitting adjustment model on full new data set
> test-adjust_frm.R: [1;30m2025-12-08 17:21:11.92 [0m Returning adjusted frm object
> test-adjust_frm.R: [1;30m2025-12-08 17:21:11.92 [0m Starting model Adjustment
> test-adjust_frm.R: [1;30m2025-12-08 17:21:11.92 [0m dim(original_data): 442 x 126
> test-adjust_frm.R: [1;30m2025-12-08 17:21:11.92 [0m dim(new_data): 25 x 3
> test-adjust_frm.R: [1;30m2025-12-08 17:21:11.93 [0m predictors: 1, 2, 3, 4, 5, 6
> test-adjust_frm.R: [1;30m2025-12-08 17:21:11.93 [0m nfolds: 5
> test-adjust_frm.R: [1;30m2025-12-08 17:21:11.93 [0m Preprocessing data
> test-adjust_frm.R: [1;30m2025-12-08 17:21:11.93 [0m Formula: RT_ADJ ~ RT + I(RT^2) + I(RT^3) + log(RT) + exp(RT) + sqrt(RT)
> test-adjust_frm.R: [1;30m2025-12-08 17:21:11.93 [0m Estimating performance of adjusted model in CV
> test-adjust_frm.R: [1;30m2025-12-08 17:21:12.00 [0m Fitting adjustment model on full new data set
> test-adjust_frm.R: [1;30m2025-12-08 17:21:12.00 [0m Returning adjusted frm object
> test-selective_measuring.R: [1;30m2025-12-08 17:21:12.31 [0m Starting Selective Measuring
> test-selective_measuring.R: [1;30m2025-12-08 17:21:12.31 [0m Preprocessing input data
> test-selective_measuring.R: [1;30m2025-12-08 17:21:12.32 [0m Mocking is enabled for 'preprocess_data'. Returning 'mockdata/RPCD_prepro.rds'.
> test-selective_measuring.R: [1;30m2025-12-08 17:21:12.32 [0m Standardizing features
> test-selective_measuring.R: [1;30m2025-12-08 17:21:12.33 [0m Training Ridge Regression model
> test-selective_measuring.R: [1;30m2025-12-08 17:21:12.33 [0m Fitting Ridge model
> test-selective_measuring.R: [1;30m2025-12-08 17:21:12.70 [0m End training
> test-selective_measuring.R: [1;30m2025-12-08 17:21:12.70 [0m Scaling features by coefficients of Ridge Regression model
> test-selective_measuring.R: [1;30m2025-12-08 17:21:12.71 [0m Applying PAM clustering
> test-selective_measuring.R: [1;30m2025-12-08 17:21:13.18 [0m Returning clustering results
[ FAIL 3 | WARN 5 | SKIP 0 | PASS 19 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-train_frm-gbtree.R:5:5'): train_frm works if `method == "GBTree"` ──
<subscriptOutOfBoundsError/error/condition>
Error in `FUN(X[[i]], ...)`: subscript out of bounds
Backtrace:
▆
1. └─FastRet::train_frm(...) at test-train_frm-gbtree.R:5:5
2. └─base::lapply(tmp, "[[", 2)
── Error ('test-fit_gbtree.R:8:5'): fit.gbtrees works as expected ──────────────
Error in `begin_iteration:end_iteration`: argument of length 0
Backtrace:
▆
1. └─FastRet:::fit_gbtree(df, verbose = 0) at test-fit_gbtree.R:8:5
2. └─FastRet:::fit_gbtree_grid(...)
3. └─xgboost::xgb.train(...)
── Error ('test-fit_gbtree.R:16:5'): fit.gbtrees works for data from reverse phase column ──
Error in `begin_iteration:end_iteration`: argument of length 0
Backtrace:
▆
1. └─FastRet:::fit_gbtree(df, verbose = 0) at test-fit_gbtree.R:16:5
2. └─FastRet:::fit_gbtree_grid(...)
3. └─xgboost::xgb.train(...)
[ FAIL 3 | WARN 5 | SKIP 0 | PASS 19 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [5s/7s] OK
- checking HTML version of manual ... [2s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR