- 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 ‘aum/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘aum’ version ‘2024.6.19’
- checking CRAN incoming feasibility ... [1s/1s] 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 ‘aum’ can be installed ... OK
See the install log for details.
- used C++ compiler: ‘Debian clang version 21.1.7 (1)’
- 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 ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the package can be unloaded cleanly ... [0s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/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 ... [6s/10s] 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 data for ASCII and uncompressed saves ... OK
- checking line endings in C/C++/Fortran sources/headers ... OK
- checking pragmas in C/C++ headers and code ... OK
- checking compilation flags used ... OK
- checking compiled code ... NOTE
File ‘aum/libs/aum.so’:
Found non-API call to R: ‘ATTRIB’
Compiled code should not call non-API entry points in R.
See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual,
and section ‘Moving into C API compliance’ for issues with the use of
non-API entry points.
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [15s/18s] ERROR
Running examples in ‘aum-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: aum_linear_model_cv
> ### Title: aum linear model cv
> ### Aliases: aum_linear_model_cv
>
> ### ** Examples
>
>
> if(require("data.table"))setDTthreads(1L)#for CRAN check.
Loading required package: data.table
Attaching package: ‘data.table’
The following object is masked from ‘package:base’:
%notin%
>
> ## simulated binary classification problem.
> N.rows <- 60
> N.cols <- 2
> set.seed(1)
> feature.mat <- matrix(rnorm(N.rows*N.cols), N.rows, N.cols)
> unknown.score <- feature.mat[,1]*2.1 + rnorm(N.rows)
> label.vec <- ifelse(unknown.score > 0, 1, 0)
> diffs.dt <- aum::aum_diffs_binary(label.vec)
>
> ## Default line search keeps doing iterations until increase in AUM.
> (default.time <- system.time({
+ default.model <- aum::aum_linear_model_cv(feature.mat, diffs.dt)
+ }))
Error in `[.data.table`(example.totals, , `:=`(fold, sample(rep(sample(uniq.folds), :
attempt access index 3/3 in VECTOR_ELT
Calls: system.time -> <Anonymous> -> [ -> [.data.table
Timing stopped at: 0.108 0 0.109
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
user system elapsed
aum_diffs_penalty 5.057 0.096 5.779
aum_line_search_grid 4.492 0.048 5.464
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [11s/9s] ERROR
Running ‘testthat.R’ [11s/9s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> if(require(testthat))test_check("aum")
Loading required package: testthat
Loading required package: aum
Saving _problems/test-CRAN-linear-model-14.R
Saving _problems/test-CRAN-linear-model-20.R
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 102 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-CRAN-linear-model.R:12:3'): error when there are not enough data ──
`{ ... }` threw an error with unexpected message.
Expected match: "not enough data for 3-fold cross-validation, because there are only 2 examples for which there are non-zero values for the minority diff, fn"
Actual message: "attempt access index 3/3 in VECTOR_ELT"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test-CRAN-linear-model.R:12:3
2. │ └─testthat:::quasi_capture(...)
3. │ ├─testthat (local) .capture(...)
4. │ │ └─base::withCallingHandlers(...)
5. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
6. └─aum::aum_linear_model_cv(feature.mat, diffs.dt, n.folds = n.folds) at test-CRAN-linear-model.R:13:5
7. ├─...[]
8. └─data.table:::`[.data.table`(...)
── Error ('test-CRAN-linear-model.R:20:3'): model fitting works if at least as many data as folds ──
Error in ``[.data.table`(example.totals, , `:=`(fold, sample(rep(sample(uniq.folds), l = .N))), by = minority.zero)`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─aum::aum_linear_model_cv(feature.mat, diffs.dt, n.folds = n.folds) at test-CRAN-linear-model.R:20:3
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 102 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [3s/4s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘speed-comparison.Rmd’ using knitr
Quitting from speed-comparison.Rmd:21-44 [unnamed-chunk-1]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error:
! attempt access index 16/16 in VECTOR_ELT
---
Backtrace:
▆
1. └─atime::atime(...)
2. └─atime:::run_bench_mark(times, elist[not.done.yet], N.env, result)
3. ├─base::suppressWarnings(eval(m.call, N.env))
4. │ └─base::withCallingHandlers(...)
5. └─base::eval(m.call, N.env)
6. └─base::eval(m.call, N.env)
7. └─bench::mark(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'speed-comparison.Rmd' failed with diagnostics:
attempt access index 16/16 in VECTOR_ELT
--- failed re-building ‘speed-comparison.Rmd’
SUMMARY: processing the following file failed:
‘speed-comparison.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [1s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 3 ERRORs, 1 NOTE