* using log directory 'd:/Rcompile/CRANpkg/local/4.4/FastRet.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 'FastRet/DESCRIPTION' ... OK * this is package 'FastRet' version '1.1.4' * 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 'FastRet' can be installed ... OK * checking installed package size ... OK * checking package 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 ... [6s] OK * checking whether the package can be loaded with stated dependencies ... [5s] OK * checking whether the package can be unloaded cleanly ... [6s] OK * checking whether the namespace can be loaded with stated dependencies ... [5s] OK * checking whether the namespace can be unloaded cleanly ... [6s] OK * checking loading without being on the library search path ... [5s] OK * checking whether startup messages can be suppressed ... [5s] 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 ... [17s] 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 examples ... [23s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [25s] ERROR Running 'testthat.R' [25s] 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 > test-read_rp_xlsx.R: WARNING: An illegal reflective access operation has occurred > test-read_rp_xlsx.R: WARNING: Illegal reflective access by org.apache.poi.openxml4j.util.ZipSecureFile (file:/D:/RCompile/CRANpkg/lib/4.4/xlsxjars/java/poi-ooxml-3.13-20150929.jar) to field java.io.FilterInputStream.in > test-read_rp_xlsx.R: WARNING: Please consider reporting this to the maintainers of org.apache.poi.openxml4j.util.ZipSecureFile > test-read_rp_xlsx.R: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations > test-read_rp_xlsx.R: WARNING: All illegal access operations will be denied in a future release > test-read_rp_xlsx.R: > test-plot_frm.R: 2025-12-05 07:38:19.12 Starting training of a lasso model > test-plot_frm.R: 2025-12-05 07:38:19.12 Mocking is enabled. Returning 'mockdata/lasso_model.rds' Saving _problems/test-fit_gbtree-8.R Saving _problems/test-fit_gbtree-16.R > test-plot_frm.R: 2025-12-05 07:38:19.39 Starting training of a lasso model > test-plot_frm.R: 2025-12-05 07:38:19.39 Parallel processing is not supported on Windows. Setting `nw` to 1. > test-plot_frm.R: 2025-12-05 07:38:19.39 Mocking is enabled. Returning 'mockdata/lasso_model.rds' > test-plot_frm.R: 2025-12-05 07:38:19.40 Starting model Adjustment > test-plot_frm.R: 2025-12-05 07:38:19.40 dim(original_data): 442 x 126 > test-plot_frm.R: 2025-12-05 07:38:19.40 dim(new_data): 25 x 3 > test-plot_frm.R: 2025-12-05 07:38:19.53 predictors: 1, 2, 3, 4, 5, 6 > test-plot_frm.R: 2025-12-05 07:38:19.53 nfolds: 5 > test-plot_frm.R: 2025-12-05 07:38:19.53 Preprocessing data > test-plot_frm.R: 2025-12-05 07:38:19.56 Formula: RT_ADJ ~ RT + I(RT^2) + I(RT^3) + log(RT) + exp(RT) + sqrt(RT) > test-plot_frm.R: 2025-12-05 07:38:19.57 Estimating performance of adjusted model in CV > test-plot_frm.R: 2025-12-05 07:38:19.65 Fitting adjustment model on full new data set > test-plot_frm.R: 2025-12-05 07:38:19.66 Returning adjusted frm object > test-adjust_frm.R: WARNING: An illegal reflective access operation has occurred > test-adjust_frm.R: WARNING: Illegal reflective access by org.apache.poi.openxml4j.util.ZipSecureFile (file:/D:/RCompile/CRANpkg/lib/4.4/xlsxjars/java/poi-ooxml-3.13-20150929.jar) to field java.io.FilterInputStream.in > test-adjust_frm.R: WARNING: Please consider reporting this to the maintainers of org.apache.poi.openxml4j.util.ZipSecureFile > test-adjust_frm.R: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations > test-adjust_frm.R: WARNING: All illegal access operations will be denied in a future release > test-adjust_frm.R: > test-selective_measuring.R: 2025-12-05 07:38:20.35 Starting Selective Measuring > test-selective_measuring.R: 2025-12-05 07:38:20.35 Preprocessing input data > test-selective_measuring.R: 2025-12-05 07:38:20.35 Mocking is enabled for 'preprocess_data'. Returning 'mockdata/RPCD_prepro.rds'. > test-selective_measuring.R: 2025-12-05 07:38:20.35 Standardizing features > test-selective_measuring.R: 2025-12-05 07:38:20.36 Training Ridge Regression model > test-selective_measuring.R: 2025-12-05 07:38:20.36 Fitting Ridge model > test-adjust_frm.R: 2025-12-05 07:38:20.73 Starting model Adjustment > test-adjust_frm.R: 2025-12-05 07:38:20.73 dim(original_data): 442 x 126 > test-adjust_frm.R: 2025-12-05 07:38:20.73 dim(new_data): 25 x 3 > test-adjust_frm.R: 2025-12-05 07:38:20.73 predictors: 1, 2 > test-adjust_frm.R: 2025-12-05 07:38:20.73 nfolds: 5 > test-adjust_frm.R: 2025-12-05 07:38:20.73 Preprocessing data > test-adjust_frm.R: 2025-12-05 07:38:20.74 Formula: RT_ADJ ~ RT + I(RT^2) > test-adjust_frm.R: 2025-12-05 07:38:20.74 Estimating performance of adjusted model in CV > test-adjust_frm.R: 2025-12-05 07:38:20.83 Fitting adjustment model on full new data set > test-adjust_frm.R: 2025-12-05 07:38:20.83 Returning adjusted frm object > test-adjust_frm.R: 2025-12-05 07:38:20.83 Starting model Adjustment > test-adjust_frm.R: 2025-12-05 07:38:20.83 dim(original_data): 442 x 126 > test-adjust_frm.R: 2025-12-05 07:38:20.83 dim(new_data): 25 x 3 > test-adjust_frm.R: 2025-12-05 07:38:20.83 predictors: 1, 2, 3, 4, 5, 6 > test-adjust_frm.R: 2025-12-05 07:38:20.83 nfolds: 5 > test-adjust_frm.R: 2025-12-05 07:38:20.83 Preprocessing data > test-adjust_frm.R: 2025-12-05 07:38:20.84 Formula: RT_ADJ ~ RT + I(RT^2) + I(RT^3) + log(RT) + exp(RT) + sqrt(RT) > test-adjust_frm.R: 2025-12-05 07:38:20.84 Estimating performance of adjusted model in CV > test-adjust_frm.R: 2025-12-05 07:38:20.91 Fitting adjustment model on full new data set > test-adjust_frm.R: 2025-12-05 07:38:20.91 Returning adjusted frm object > test-selective_measuring.R: 2025-12-05 07:38:21.00 End training > test-selective_measuring.R: 2025-12-05 07:38:21.00 Scaling features by coefficients of Ridge Regression model > test-selective_measuring.R: 2025-12-05 07:38:21.01 Applying PAM clustering > test-selective_measuring.R: 2025-12-05 07:38:21.62 Returning clustering results [ FAIL 3 | WARN 3 | SKIP 0 | PASS 19 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-train_frm-gbtree.R:5:5'): train_frm works if `method == "GBTree"` ── Error in `begin_iteration:end_iteration`: argument of length 0 Backtrace: ▆ 1. └─FastRet::train_frm(...) at test-train_frm-gbtree.R:5:5 2. └─parallel::mclapply(...) 3. └─base::lapply(X, FUN, ...) 4. └─FastRet (local) FUN(X[[i]], ...) 5. └─FastRet (local) fit(df[train, ], verbose = 0) 6. └─FastRet:::fit_gbtree_grid(...) 7. └─xgboost::xgb.train(...) ── 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 3 | SKIP 0 | PASS 19 ] Error: ! Test failures. Execution halted * checking PDF version of manual ... [18s] OK * checking HTML version of manual ... [5s] OK * DONE Status: 1 ERROR