CRAN Package Check Results for Package mikropml

Last updated on 2026-11-16 05:52:45 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 1.7.1 59.38 615.69 675.07 OK
r-devel-linux-x86_64-debian-gcc 1.7.1 45.89 466.85 512.74 ERROR
r-devel-linux-x86_64-fedora-clang 1.7.1 48.00 449.09 497.09 ERROR
r-devel-linux-x86_64-fedora-gcc 1.7.1 50.00 462.34 512.34 OK
r-devel-windows-x86_64 1.7.1 75.00 638.00 713.00 OK
r-patched-linux-x86_64 1.7.1 59.26 513.64 572.90 OK
r-release-linux-x86_64 1.7.1 56.89 512.84 569.73 OK
r-release-macos-arm64 1.7.1 17.00 116.00 133.00 OK
r-release-macos-x86_64 1.7.1 46.00 421.00 467.00 OK
r-release-windows-x86_64 1.7.1 66.00 511.00 577.00 OK
r-oldrel-macos-arm64 1.7.1 ERROR
r-oldrel-macos-x86_64 1.7.1 17.00 ERROR
r-oldrel-windows-x86_64 1.7.1 88.00 712.00 800.00 OK

Check Details

Version: 1.7.1
Check: tests
Result: ERROR Running ‘testthat.R’ [57s/79s] 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 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, table, tapply, 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 Flavor: r-devel-linux-x86_64-debian-gcc

Version: 1.7.1
Check: tests
Result: ERROR Running ‘testthat.R’ [58s/58s] 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 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, table, tapply, 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 Flavor: r-devel-linux-x86_64-fedora-clang

Version: 1.7.1
Check: package dependencies
Result: ERROR Package required but not available: ‘TreeSummarizedExperiment’ See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual. Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64