- 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 ‘arf/DESCRIPTION’ ... OK
- this is package ‘arf’ version ‘0.2.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 serialization versions ... OK
- checking whether package ‘arf’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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 ... [2s/3s] OK
- checking whether the package can be loaded with stated dependencies ... [2s/3s] OK
- checking whether the package can be unloaded cleanly ... [2s/3s] OK
- checking whether the namespace can be loaded with stated dependencies ... [2s/3s] OK
- checking whether the namespace can be unloaded cleanly ... [2s/3s] OK
- checking loading without being on the library search path ... [3s/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 ... [18s/23s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [3s/4s] ERROR
Running examples in ‘arf-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: adversarial_rf
> ### Title: Adversarial Random Forests
> ### Aliases: adversarial_rf
>
> ### ** Examples
>
> # Train ARF and estimate leaf parameters
> arf <- adversarial_rf(iris)
Iteration: 0, Accuracy: 76.35%
Error in `[.data.table`(tmp2, , `:=`(cnt, .N), by = .(tree, leaf)) :
attempt access index 2/2 in VECTOR_ELT
Calls: adversarial_rf -> unique -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [5s/7s] ERROR
Running ‘testthat.R’ [5s/7s]
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/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> library(testthat)
> library(arf)
>
> test_check("arf")
Iteration: 0, Accuracy: 77.1%
Saving _problems/test-arguments-2.R
Iteration: 0, Accuracy: 83.56%
Saving _problems/test-conditions-2.R
Saving _problems/test-impute-19.R
Iteration: 0, Accuracy: 74.41%
Saving _problems/test-input_data-6.R
Iteration: 0, Accuracy: 81.27%
Saving _problems/test-input_data-41.R
Saving _problems/test-return_types-2.R
Saving _problems/test-return_types-7.R
Saving _problems/test-return_types-19.R
Saving _problems/test-return_types-26.R
Saving _problems/test-return_types-37.R
Saving _problems/test-return_types-44.R
Saving _problems/test-return_types-55.R
Saving _problems/test-return_types-76.R
Saving _problems/test-return_types-101.R
Saving _problems/test-return_types-112.R
Saving _problems/test-return_types-119.R
Iteration: 0, Accuracy: 81.14%
Saving _problems/test_expct-2.R
[ FAIL 17 | WARN 0 | SKIP 0 | PASS 2 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-arguments.R:2:3'): FORDE works with alpha>0 ────────────────────
Error in ``[.data.table`(tmp2, , `:=`(cnt, .N), by = .(tree, leaf))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─arf::adversarial_rf(iris, parallel = FALSE) at test-arguments.R:2:3
2. ├─base::unique(tmp2[, `:=`(cnt, .N), by = .(tree, leaf)])
3. ├─tmp2[, `:=`(cnt, .N), by = .(tree, leaf)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-conditions.R:2:1'): (code run outside of `test_that()`) ────────
Error in ``[.data.table`(tmp2, , `:=`(cnt, .N), by = .(tree, leaf))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─arf::adversarial_rf(iris, parallel = FALSE) at test-conditions.R:2:1
2. ├─base::unique(tmp2[, `:=`(cnt, .N), by = .(tree, leaf)])
3. ├─tmp2[, `:=`(cnt, .N), by = .(tree, leaf)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-impute.R:19:3'): Imputation fills missing values ───────────────
Error in ``[.data.table`(tmp2, , `:=`(cnt, .N), by = .(tree, leaf))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─arf::impute(iris_na, m = 1, parallel = FALSE) at test-impute.R:19:3
2. ├─base::do.call(...)
3. └─arf (local) `<fn>`(...)
4. ├─base::unique(tmp2[, `:=`(cnt, .N), by = .(tree, leaf)])
5. ├─tmp2[, `:=`(cnt, .N), by = .(tree, leaf)]
6. └─data.table:::`[.data.table`(...)
── Error ('test-input_data.R:6:3'): FORGE works if y is a column name ──────────
Error in ``[.data.table`(tmp2, , `:=`(cnt, .N), by = .(tree, leaf))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─arf::adversarial_rf(dat, parallel = FALSE) at test-input_data.R:6:3
2. ├─base::unique(tmp2[, `:=`(cnt, .N), by = .(tree, leaf)])
3. ├─tmp2[, `:=`(cnt, .N), by = .(tree, leaf)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-input_data.R:41:3'): Imputation works if integers recoded to factors ──
Error in ``[.data.table`(tmp2, , `:=`(cnt, .N), by = .(tree, leaf))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_warning(arf <- adversarial_rf(dat, parallel = FALSE)) at test-input_data.R:41:3
2. │ └─testthat:::expect_condition_matching_(...)
3. │ └─testthat:::quasi_capture(...)
4. │ ├─testthat (local) .capture(...)
5. │ │ └─base::withCallingHandlers(...)
6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
7. └─arf::adversarial_rf(dat, parallel = FALSE)
8. ├─base::unique(tmp2[, `:=`(cnt, .N), by = .(tree, leaf)])
9. ├─tmp2[, `:=`(cnt, .N), by = .(tree, leaf)]
10. └─data.table:::`[.data.table`(...)
── Error ('test-return_types.R:2:3'): ARF returns ranger object ────────────────
Error in ``[.data.table`(tmp2, , `:=`(cnt, .N), by = .(tree, leaf))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─arf::adversarial_rf(iris, num_trees = 2, verbose = FALSE, parallel = FALSE) at test-return_types.R:2:3
2. ├─base::unique(tmp2[, `:=`(cnt, .N), by = .(tree, leaf)])
3. ├─tmp2[, `:=`(cnt, .N), by = .(tree, leaf)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-return_types.R:7:3'): FORDE returns correct list object ────────
Error in ``[.data.table`(tmp2, , `:=`(cnt, .N), by = .(tree, leaf))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─arf::adversarial_rf(iris, num_trees = 2, verbose = FALSE, parallel = FALSE) at test-return_types.R:7:3
2. ├─base::unique(tmp2[, `:=`(cnt, .N), by = .(tree, leaf)])
3. ├─tmp2[, `:=`(cnt, .N), by = .(tree, leaf)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-return_types.R:19:3'): FORDE categories sum to unity ───────────
Error in ``[.data.table`(tmp2, , `:=`(cnt, .N), by = .(tree, leaf))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─arf::adversarial_rf(iris, num_trees = 2, verbose = FALSE, parallel = FALSE) at test-return_types.R:19:3
2. ├─base::unique(tmp2[, `:=`(cnt, .N), by = .(tree, leaf)])
3. ├─tmp2[, `:=`(cnt, .N), by = .(tree, leaf)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-return_types.R:26:3'): Likelihood calculation returns vector of log-likelihoods ──
Error in ``[.data.table`(tmp2, , `:=`(cnt, .N), by = .(tree, leaf))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─arf::adversarial_rf(iris, num_trees = 2, verbose = FALSE, parallel = FALSE) at test-return_types.R:26:3
2. ├─base::unique(tmp2[, `:=`(cnt, .N), by = .(tree, leaf)])
3. ├─tmp2[, `:=`(cnt, .N), by = .(tree, leaf)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-return_types.R:37:3'): FORGE returns data frame when called with data frame ──
Error in ``[.data.table`(tmp2, , `:=`(cnt, .N), by = .(tree, leaf))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─arf::adversarial_rf(iris, num_trees = 2, verbose = FALSE, parallel = FALSE) at test-return_types.R:37:3
2. ├─base::unique(tmp2[, `:=`(cnt, .N), by = .(tree, leaf)])
3. ├─tmp2[, `:=`(cnt, .N), by = .(tree, leaf)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-return_types.R:44:3'): FORGE returns data table when called with data table ──
Error in ``[.data.table`(tmp2, , `:=`(cnt, .N), by = .(tree, leaf))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─arf::adversarial_rf(...) at test-return_types.R:44:3
2. ├─base::unique(tmp2[, `:=`(cnt, .N), by = .(tree, leaf)])
3. ├─tmp2[, `:=`(cnt, .N), by = .(tree, leaf)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-return_types.R:55:3'): FORGE returns matrix when called with matrix ──
Error in ``[.data.table`(tmp2, , `:=`(cnt, .N), by = .(tree, leaf))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─arf::adversarial_rf(x, num_trees = 2, verbose = FALSE, parallel = FALSE) at test-return_types.R:55:3
2. ├─base::unique(tmp2[, `:=`(cnt, .N), by = .(tree, leaf)])
3. ├─tmp2[, `:=`(cnt, .N), by = .(tree, leaf)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-return_types.R:76:3'): FORGE returns correct column types ──────
Error in ``[.data.table`(keep, , `:=`(cnt, .N), by = .(tree, leaf))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─arf::forde(arf, dat, parallel = FALSE) at test-return_types.R:76:3
2. ├─base::unique(keep[, `:=`(cnt, .N), by = .(tree, leaf)])
3. ├─keep[, `:=`(cnt, .N), by = .(tree, leaf)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-return_types.R:101:3'): FORGE does not round to real data set precision if 'round == FALSE' ──
Error in ``[.data.table`(tmp2, , `:=`(cnt, .N), by = .(tree, leaf))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─arf::adversarial_rf(iris, num_trees = 2, verbose = FALSE, parallel = FALSE) at test-return_types.R:101:3
2. ├─base::unique(tmp2[, `:=`(cnt, .N), by = .(tree, leaf)])
3. ├─tmp2[, `:=`(cnt, .N), by = .(tree, leaf)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-return_types.R:112:3'): FORGE returns factors with same levels (and order of levels) ──
Error in ``[.data.table`(tmp2, , `:=`(cnt, .N), by = .(tree, leaf))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─arf::adversarial_rf(iris, num_trees = 2, verbose = FALSE, parallel = FALSE) at test-return_types.R:112:3
2. ├─base::unique(tmp2[, `:=`(cnt, .N), by = .(tree, leaf)])
3. ├─tmp2[, `:=`(cnt, .N), by = .(tree, leaf)]
4. └─data.table:::`[.data.table`(...)
── Error ('test-return_types.R:119:3'): EXPCT returns factors with same levels (and order of levels) ──
Error in ``[.data.table`(tmp2, , `:=`(cnt, .N), by = .(tree, leaf))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─arf::adversarial_rf(iris, num_trees = 2, verbose = FALSE, parallel = FALSE) at test-return_types.R:119:3
2. ├─base::unique(tmp2[, `:=`(cnt, .N), by = .(tree, leaf)])
3. ├─tmp2[, `:=`(cnt, .N), by = .(tree, leaf)]
4. └─data.table:::`[.data.table`(...)
── Error ('test_expct.R:2:1'): (code run outside of `test_that()`) ─────────────
Error in ``[.data.table`(tmp2, , `:=`(cnt, .N), by = .(tree, leaf))`: attempt access index 2/2 in VECTOR_ELT
Backtrace:
▆
1. └─arf::adversarial_rf(iris, parallel = FALSE) at test_expct.R:2:1
2. ├─base::unique(tmp2[, `:=`(cnt, .N), by = .(tree, leaf)])
3. ├─tmp2[, `:=`(cnt, .N), by = .(tree, leaf)]
4. └─data.table:::`[.data.table`(...)
[ FAIL 17 | WARN 0 | SKIP 0 | PASS 2 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [4s/5s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘arf.Rmd’ using rmarkdown
Quitting from arf.Rmd:23-34 [arf]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 2/2 in VECTOR_ELT
---
Backtrace:
▆
1. └─arf::adversarial_rf(iris)
2. ├─base::unique(tmp2[, `:=`(cnt, .N), by = .(tree, leaf)])
3. ├─tmp2[, `:=`(cnt, .N), by = .(tree, leaf)]
4. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'arf.Rmd' failed with diagnostics:
attempt access index 2/2 in VECTOR_ELT
--- failed re-building ‘arf.Rmd’
SUMMARY: processing the following file failed:
‘arf.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [6s/9s] OK
- checking HTML version of manual ... [2s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 3 ERRORs