- using R version 4.5.2 (2025-10-31)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-14 (Debian 14.3.0-10) 14.3.0
GNU Fortran (Debian 14.3.0-10) 14.3.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘rules/DESCRIPTION’ ... OK
- this is package ‘rules’ version ‘1.0.2’
- 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 executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking serialization versions ... OK
- checking whether package ‘rules’ 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 ... [2s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the package can be unloaded cleanly ... [2s/2s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/2s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/2s] OK
- checking loading without being on the library search path ... [2s/3s] OK
- checking whether startup messages can be suppressed ... [2s/2s] 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 ... [14s/18s] OK
- checking Rd files ... [0s/0s] 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 examples ... [2s/3s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [15s/19s] ERROR
Running ‘spelling.R’ [0s/0s]
Running ‘testthat.R’ [15s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(rules)
Loading required package: parsnip
>
> test_check("rules")
Attaching package: 'modeldata'
The following object is masked from 'package:datasets':
penguins
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
Saving _problems/test-rule-fit-regression-191.R
Saving _problems/test-rule-fit-regression-192.R
[ FAIL 2 | WARN 0 | SKIP 34 | PASS 27 ]
══ Skipped tests (34) ══════════════════════════════════════════════════════════
• On CRAN (34): 'test-c5.R:4:3', 'test-c5.R:43:3', 'test-c5.R:87:3',
'test-c5.R:127:3', 'test-c5.R:167:3', 'test-c5.R:213:3', 'test-c5.R:255:3',
'test-c5.R:282:3', 'test-c5.R:362:3', 'test-cubist.R:4:3',
'test-cubist.R:79:3', 'test-cubist.R:137:3', 'test-cubist.R:180:3',
'test-cubist.R:218:3', 'test-cubist.R:257:3', 'test-cubist.R:295:3',
'test-cubist.R:356:3', 'test-cubist.R:403:3', 'test-cubist.R:445:3',
'test-cubist.R:484:3', 'test-cubist.R:531:3', 'test-cubist.R:584:3',
'test-cubist.R:617:3', 'test-rule-fit-binomial.R:6:3',
'test-rule-fit-binomial.R:91:3', 'test-rule-fit-binomial.R:177:3',
'test-rule-fit-multinomial.R:6:3', 'test-rule-fit-multinomial.R:94:3',
'test-rule-fit-multinomial.R:181:3', 'test-rule-fit-regression.R:6:3',
'test-rule-fit-regression.R:62:3', 'test-rule-fit-regression.R:118:3',
'test-rule-fit-regression.R:160:1', 'test-rule-fit-regression.R:211:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-rule-fit-regression.R:191:3'): early stopping works in xrf_fit ──
Expected `!is.null(rf_fit_2$fit$xgb$best_iteration)` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
── Failure ('test-rule-fit-regression.R:192:3'): early stopping works in xrf_fit ──
Expected `!is.null(rf_fit_3$fit$xgb$best_iteration)` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
[ FAIL 2 | WARN 0 | SKIP 34 | PASS 27 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [5s/7s] OK
- checking HTML version of manual ... [0s/1s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR