- using R Under development (unstable) (2026-11-18 r90935)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-16 (Debian 16.2.0-4) 16.2.0
GNU Fortran (Debian 16.2.0-4) 16.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
* current time: 2026-11-19 18:06:25 UTC
- checking for file ‘mikropml/DESCRIPTION’ ... OK
- this is package ‘mikropml’ version ‘1.7.1’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [2s/3s] 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 ‘mikropml’ 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 ... [11s/15s] OK
- checking whether the package can be loaded with stated dependencies ... [11s/12s] OK
- checking whether the package can be unloaded cleanly ... [11s/15s] OK
- checking whether the namespace can be loaded with stated dependencies ... [11s/14s] OK
- checking whether the namespace can be unloaded cleanly ... [11s/13s] OK
- checking loading without being on the library search path ... [11s/14s] 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 ... [49s/64s] 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 contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [12s/15s] INFO
Error loading dataset 'otu_mini_bin_results_xgbTree':
Error in xgb.get.handle(model) :
'xgb.Booster' object is corrupted or is from an incompatible XGBoost version.
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [16s/21s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [55s/74s] ERROR
Running ‘testthat.R’ [55s/74s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(mikropml)
> test_check("mikropml")
Saving _problems/test-cross_val-183.R
Fraction of data in the training set: 0.778
Groups in the training set: A C D
Groups in the testing set: B
Fraction of data in the training set: 0.778
Groups in the training set: A C D
Groups in the testing set: B
Fraction of data in the training set: 0.333
Groups in the training set: A D
Groups in the testing set: A B C D
Fraction of data in the training set: 0.785
Groups in the training set: A B E F G H
Groups in the testing set: C D
Fraction of data in the training set: 0.2
Groups in the training set: A B
Groups in the testing set: A B C D E F G H
Saving _problems/test-performance-55.R
Saving _problems/test-performance-72.R
Saving _problems/test-performance-253.R
Using 'dx' as the outcome column.
Using 'dx' as the outcome column.
Using 'dx' as the outcome column.
Using 'y' as the outcome column.
Using 'y' as the outcome column.
Loading required package: SingleCellExperiment
Loading required package: SummarizedExperiment
Loading required package: MatrixGenerics
Loading required package: matrixStats
Attaching package: 'MatrixGenerics'
The following objects are masked from 'package:matrixStats':
colAlls, colAnyNAs, colAnys, colAvgsPerRowSet, colCollapse,
colCounts, colCummaxs, colCummins, colCumprods, colCumsums,
colDiffs, colIQRDiffs, colIQRs, colLogSumExps, colMadDiffs,
colMads, colMaxs, colMeans2, colMedians, colMins, colOrderStats,
colProds, colQuantiles, colRanges, colRanks, colSdDiffs, colSds,
colSums2, colTabulates, colVarDiffs, colVars, colWeightedMads,
colWeightedMeans, colWeightedMedians, colWeightedSds,
colWeightedVars, rowAlls, rowAnyNAs, rowAnys, rowAvgsPerColSet,
rowCollapse, rowCounts, rowCummaxs, rowCummins, rowCumprods,
rowCumsums, rowDiffs, rowIQRDiffs, rowIQRs, rowLogSumExps,
rowMadDiffs, rowMads, rowMaxs, rowMeans2, rowMedians, rowMins,
rowOrderStats, rowProds, rowQuantiles, rowRanges, rowRanks,
rowSdDiffs, rowSds, rowSums2, rowTabulates, rowVarDiffs, rowVars,
rowWeightedMads, rowWeightedMeans, rowWeightedMedians,
rowWeightedSds, rowWeightedVars
Loading required package: GenomicRanges
Loading required package: stats4
Loading required package: BiocGenerics
Loading required package: generics
Attaching package: 'generics'
The following objects are masked from 'package:base':
as.difftime, as.factor, as.ordered, intersect, is.element, setdiff,
setequal, union
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following object is masked from 'package:utils':
data
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, aperm, append,
as.data.frame, basename, cbind, colnames, dirname, do.call,
duplicated, eval, evalq, get, grep, grepl, is.unsorted, lapply,
mapply, match, mget, order, paste, pmax, pmax.int, pmin, pmin.int,
rank, rbind, rownames, sapply, saveRDS, scale, sequence, table,
tapply, transform, unique, unsplit, which.max, which.min
Loading required package: S4Vectors
Attaching package: 'S4Vectors'
The following object is masked from 'package:utils':
findMatches
The following objects are masked from 'package:base':
I, expand.grid, unname
Loading required package: IRanges
Attaching package: 'IRanges'
The following object is masked from 'package:purrr':
reduce
Loading required package: Seqinfo
Loading required package: Biobase
Welcome to Bioconductor
Vignettes contain introductory material; view with
'browseVignettes()'. To cite Bioconductor, see
'citation("Biobase")', and for packages 'citation("pkgname")'.
Attaching package: 'Biobase'
The following object is masked from 'package:MatrixGenerics':
rowMedians
The following objects are masked from 'package:matrixStats':
anyMissing, rowMedians
Loading required package: Biostrings
Loading required package: XVector
Attaching package: 'XVector'
The following object is masked from 'package:purrr':
compact
Attaching package: 'Biostrings'
The following object is masked from 'package:base':
strsplit
Attaching package: 'dplyr'
The following objects are masked from 'package:Biostrings':
collapse, intersect, setdiff, setequal, union
The following object is masked from 'package:XVector':
slice
The following object is masked from 'package:Biobase':
combine
The following objects are masked from 'package:GenomicRanges':
intersect, setdiff, union
The following object is masked from 'package:Seqinfo':
intersect
The following objects are masked from 'package:IRanges':
collapse, desc, intersect, setdiff, slice, union
The following objects are masked from 'package:S4Vectors':
first, intersect, rename, setdiff, setequal, union
The following objects are masked from 'package:BiocGenerics':
combine, intersect, setdiff, setequal, union
The following object is masked from 'package:generics':
explain
The following object is masked from 'package:matrixStats':
count
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-run_ml-244.R
Using 'dx' as the outcome column.
Groups will not be kept together in CV partitions because the number of groups in the training set is not larger than `kfold`
Training the model...
Training complete.
Fraction of data in the training set: 0.785
Groups in the training set: A B E F G H
Groups in the testing set: C D
Using 'dx' as the outcome column.
Using 'dx' as the outcome column.
[ FAIL 5 | WARN 0 | SKIP 13 | PASS 323 ]
══ Skipped tests (13) ══════════════════════════════════════════════════════════
• On CRAN (12): 'test-feature_importance.R:13:3',
'test-feature_importance.R:218:3', 'test-feature_importance.R:238:3',
'test-run_ml.R:248:3', 'test-run_ml.R:266:3', 'test-run_ml.R:282:3',
'test-run_ml.R:325:3', 'test-run_ml.R:342:3', 'test-run_ml.R:383:3',
'test-run_ml.R:479:3', 'test-run_ml.R:517:3', 'test-train.R:92:3'
• compareVersion(installed.packages()["xgboost", "Version"], "1.8") == -1 is
not TRUE (1): 'test-run_ml.R:302:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-cross_val.R:183:3'): define_cv works on otu_mini training data with groups ──
Expected `cv` to equal `otu_mini_cv`.
Differences:
body(actual$summaryFunction) vs body(expected$summaryFunction)
`{`
- ` if (!all(levels(data[, "pred"]) == levels(data[, "obs"]))) {`
+ ` if (!all(levels(data[, "pred"]) == levels(data[, "obs"]))) `
` stop("levels of observed and predicted data do not match")`
- ` }`
+ ` has_class_probs <- all(lev %in% colnames(data))`
- ` has_class_probs <- all(lev %in% colnames(data))`
+ ` if (has_class_probs) {`
- ` obs <- data[, "obs"]`
+ ` lloss <- mnLogLoss(data = data, lev = lev, model = model)`
- ` pred <- data[, "pred"]`
+ ` requireNamespaceQuietStop("pROC")`
- ` classes <- levels(pred)`
+ ` requireNamespaceQuietStop("MLmetrics")`
- ` is_binary <- length(classes) == 2`
+ ` prob_stats <- lapply(levels(data[, "pred"]), function(x) {`
- ` if (has_class_probs) {`
+ ` obs <- ifelse(data[, "obs"] == x, 1, 0)`
and 44 more ...
── Failure ('test-performance.R:43:3'): calc_perf_metrics works ────────────────
Expected `calc_perf_metrics(...)` to equal `unlist(...)`.
Differences:
actual | expected
[1] 0.684105212 | 0.684105212 [1]
[2] 0.647368421 | 0.647368421 [2]
[3] 0.632667094 - 0.606351305 [3]
[4] 0.589743590 | 0.589743590 [4]
[5] 0.178947368 | 0.178947368 [5]
[6] 0.600000000 | 0.600000000 [6]
── Failure ('test-performance.R:60:3'): get_performance_tbl works ──────────────
Expected `get_performance_tbl(...)` to equal `otu_mini_bin_results_glmnet$performance`.
Differences:
actual vs expected
prAUC
- actual[1, ] 0.6326671
+ expected[1, ] 0.6063513
`actual$prAUC`: 0.633
`expected$prAUC`: 0.606
── Failure ('test-performance.R:253:3'): bootstrap_performance returns consistent results ──
Expected `boot_1 %>% dplyr::arrange(term)` to equal `boot_2 %>% dplyr::arrange(term)`.
Differences:
actual vs expected
.lower .estimate .upper
actual[12, ] 0.56250000 0.56250000 0.56250000
actual[13, ] 0.62217371 0.62217371 0.62217371
actual[14, ] 0.68804038 0.68804038 0.68804038
- actual[15, ] 0.59946309 0.59946309 0.59946309
+ expected[15, ] 0.52473482 0.52473482 0.52473482
`actual$.lower[12:15]`: 0.562500000 0.622173713 0.688040379 0.599463085
`expected$.lower[12:15]`: 0.562500000 0.622173713 0.688040379 0.524734824
`actual$.estimate[12:15]`: 0.562500000 0.622173713 0.688040379 0.599463085
`expected$.estimate[12:15]`: 0.562500000 0.622173713 0.688040379 0.524734824
`actual$.upper[12:15]`: 0.562500000 0.622173713 0.688040379 0.599463085
`expected$.upper[12:15]`: 0.562500000 0.622173713 0.688040379 0.524734824
── Failure ('test-run_ml.R:231:3'): run_ml works for logistic regression ───────
Expected `get_all_but_model(result1)` to equal `get_all_but_model(result2)`.
Differences:
actual$performance vs expected$performance
prAUC
- actual$performance[1, ] 0.6326671
+ expected$performance[1, ] 0.6063513
`actual$performance$prAUC`: 0.633
`expected$performance$prAUC`: 0.606
Backtrace:
▆
1. ├─... %>% suppressMessages() at test-run_ml.R:231:3
2. ├─base::suppressMessages(.)
3. │ └─base::withCallingHandlers(...)
4. ├─testthat::expect_warning(., "`caret::train\\(\\)` issued the following warning:")
5. │ └─testthat:::expect_condition_matching_(...)
6. │ └─testthat:::quasi_capture(...)
7. │ ├─testthat (local) .capture(...)
8. │ │ └─base::withCallingHandlers(...)
9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
10. └─mikropml (local) expect_equal_ml_results(...)
11. ├─base::eval(...) at test-run_ml.R:16:3
12. │ └─base::eval(...)
13. └─testthat::expect_equal(...)
[ FAIL 5 | WARN 0 | SKIP 13 | PASS 323 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [32s/41s] OK
- checking PDF version of manual ... [6s/8s] OK
- checking HTML version of manual ... [2s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR