- using R Under development (unstable) (2025-12-18 r89199)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 21.1.7 (1)
Debian flang version 21.1.7 (1)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘tidyrules/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘tidyrules’ version ‘0.2.7’
- 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 ‘tidyrules’ 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 ... [1s/2s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/1s] 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/22s] OK
- checking Rd files ... [1s/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 examples ... [4s/6s] ERROR
Running examples in ‘tidyrules-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: augment.rulelist
> ### Title: Augment a rulelist
> ### Aliases: augment.rulelist
>
> ### ** Examples
>
> # Examples for augment ------------------------------------------------------
> library("magrittr")
>
> # C5 ----
> att = modeldata::attrition
> set.seed(100)
> train_index = sample(c(TRUE, FALSE), nrow(att), replace = TRUE)
>
> model_c5 = C50::C5.0(Attrition ~., data = att[train_index, ], rules = TRUE)
> tidy_c5 =
+ model_c5 %>%
+ tidy() %>%
+ set_validation_data(att[!train_index, ], "Attrition")
Error in `[.data.table`(~.df, , `:=`(rule_nbr = 1:.N), by = "trial_nbr", :
attempt access index 6/6 in VECTOR_ELT
Calls: %>% ... mutate -> mutate.tidytable -> eval_tidy -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [10s/12s] ERROR
Running ‘testthat.R’ [10s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(tidyrules)
>
> test_check("tidyrules")
Saving _problems/test-c5-13.R
Saving _problems/test-cubist-17.R
Saving _problems/test-rulelist-16.R
[ FAIL 3 | WARN 0 | SKIP 0 | PASS 17 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-c5.R:13:1'): (code run outside of `test_that()`) ───────────────
Error in ``[.data.table`(~.df, , `:=`(rule_nbr = 1:.N), by = "trial_nbr", keyby = FALSE)`: attempt access index 6/6 in VECTOR_ELT
Backtrace:
▆
1. ├─generics::tidy(c5_att) at test-c5.R:13:1
2. ├─tidyrules:::tidy.C5.0(c5_att)
3. │ └─... %>% relocate(rule_nbr, trial_nbr)
4. ├─tidytable::relocate(., rule_nbr, trial_nbr)
5. ├─tidytable::mutate(., RHS = factor(RHS))
6. ├─tidytable::mutate(., rule_nbr = 1:n(), .by = trial_nbr)
7. ├─tidytable:::mutate.tidytable(., rule_nbr = 1:n(), .by = trial_nbr)
8. │ └─rlang::eval_tidy(dt_expr, .df, dt_env)
9. ├─.df[, `:=`(rule_nbr = 1:.N), by = "trial_nbr", keyby = FALSE]
10. └─data.table:::`[.data.table`(...)
── Error ('test-cubist.R:17:1'): (code run outside of `test_that()`) ───────────
Error in ``[.data.table`(~.df, , `:=`(rule_nbr = seq_len(.N)), by = "committee", keyby = FALSE)`: attempt access index 8/8 in VECTOR_ELT
Backtrace:
▆
1. ├─generics::tidy(cb_att) at test-cubist.R:17:1
2. ├─tidyrules:::tidy.cubist(cb_att)
3. │ └─... %>% ...
4. ├─tidytable::mutate(., rule_nbr = tidytable::row_number(), .by = committee)
5. ├─tidytable:::mutate.tidytable(...)
6. │ └─rlang::eval_tidy(dt_expr, .df, dt_env)
7. ├─.df[, `:=`(rule_nbr = seq_len(.N)), by = "committee", keyby = FALSE]
8. └─data.table:::`[.data.table`(...)
── Error ('test-rulelist.R:16:1'): (code run outside of `test_that()`) ─────────
Error in ``[.data.table`(~.df, , `:=`(rule_nbr = 1:.N), by = "trial_nbr", keyby = FALSE)`: attempt access index 6/6 in VECTOR_ELT
Backtrace:
▆
1. ├─generics::tidy(model_c5) at test-rulelist.R:16:1
2. ├─tidyrules:::tidy.C5.0(model_c5)
3. │ └─... %>% relocate(rule_nbr, trial_nbr)
4. ├─tidytable::relocate(., rule_nbr, trial_nbr)
5. ├─tidytable::mutate(., RHS = factor(RHS))
6. ├─tidytable::mutate(., rule_nbr = 1:n(), .by = trial_nbr)
7. ├─tidytable:::mutate.tidytable(., rule_nbr = 1:n(), .by = trial_nbr)
8. │ └─rlang::eval_tidy(dt_expr, .df, dt_env)
9. ├─.df[, `:=`(rule_nbr = 1:.N), by = "trial_nbr", keyby = FALSE]
10. └─data.table:::`[.data.table`(...)
[ FAIL 3 | WARN 0 | SKIP 0 | PASS 17 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [6s/7s] OK
- checking HTML version of manual ... [3s/5s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs