- using R Under development (unstable) (2025-12-24 r89227)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-11) 15.2.0
GNU Fortran (Debian 15.2.0-11) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘mmb/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘mmb’ version ‘0.13.3’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/1s] NOTE
Maintainer: ‘Sebastian Hönel <sebastian.honel@lnu.se>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: person(given = "Sebastian",
family = "Hönel",
role = c("aut", "cre"),
email = "sebastian.honel@lnu.se")
as necessary.
- 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 ‘mmb’ 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 ... [0s/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] 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 ... [4s/5s] 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 LazyData ... INFO
'LazyData' is specified without a 'data' directory
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [4s/5s] ERROR
Running examples in ‘mmb-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: bayesProbabilityAssign
> ### Title: Assign probabilities to one or more samples, given some training
> ### data.
> ### Aliases: bayesProbabilityAssign
> ### Keywords: classification full-dependency inferencing
>
> ### ** Examples
>
> w <- mmb::getWarnings()
> mmb::setWarnings(FALSE)
[1] FALSE
>
> set.seed(84735)
> rn <- base::sample(rownames(iris), 150)
> dfTrain <- iris[rn[1:120], ]
> dfValid <- iris[rn[121:150], !(colnames(iris) %in% "Species") ]
> mmb::bayesProbabilityAssign(dfTrain, dfValid, "Species")
Error in xtfrm.data.frame(list(virginica = 0.0475794229174146, versicolor = 0.0513857767508078, :
cannot xtfrm data frames
Calls: <Anonymous> -> xtfrm -> xtfrm.data.frame
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [22s/34s] ERROR
Running ‘helpers.R’ [0s/0s]
Running ‘testthat.R’ [21s/33s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(mmb)
>
> test_check("mmb")
Saving _problems/test_bayes-346.R
Saving _problems/test_bayes-429.R
Saving _problems/test_bayes-462.R
Saving _problems/test_bayesRegress-40.R
Saving _problems/test_bayesRegress-57.R
Saving _problems/test_bayesRegress-122.R
Saving _problems/test_discretization-68.R
Saving _problems/test_pdfAndProb-13.R
Saving _problems/test_pdfAndProb-21.R
Saving _problems/test_warnings-16.R
[ FAIL 10 | WARN 139 | SKIP 0 | PASS 308 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_bayes.R:343:3'): the full Bayesian works with many variables ───
Error in `xtfrm.data.frame(structure(list(`4` = 0, `8` = 0, `6` = 0), row.names = 1L, class = "data.frame"))`: cannot xtfrm data frames
Backtrace:
▆
1. └─mmb::bayesProbabilityAssign(...) at test_bayes.R:343:3
2. ├─base::xtfrm(`<df[,3]>`)
3. └─base::xtfrm.data.frame(`<df[,3]>`)
── Error ('test_bayes.R:427:3'): assigning for multiple works using naive Bayes ──
Error in `xtfrm.data.frame(structure(list(virginica = 0.000578947368421053, versicolor = 0.000966428571428572, setosa = 0.2728171875), row.names = 1L, class = "data.frame"))`: cannot xtfrm data frames
Backtrace:
▆
1. └─mmb::bayesProbabilityAssign(...) at test_bayes.R:427:3
2. ├─base::xtfrm(`<df[,3]>`)
3. └─base::xtfrm.data.frame(`<df[,3]>`)
── Error ('test_bayes.R:460:3'): we can do online learning and return factors ──
Error in `xtfrm.data.frame(structure(list(setosa = 0.0133000875267292, versicolor = 0.0722285917992075, virginica = 2.60391628278781), row.names = 1L, class = "data.frame"))`: cannot xtfrm data frames
Backtrace:
▆
1. └─mmb::bayesProbabilityAssign(...) at test_bayes.R:460:3
2. ├─base::xtfrm(`<df[,3]>`)
3. └─base::xtfrm.data.frame(`<df[,3]>`)
── Error ('test_bayesRegress.R:36:5'): we can also sample from the most likely range only ──
Error in `xtfrm.data.frame(structure(list(rowname = "1", `1` = 0.51, `2` = 0.18, `3` = 0.11, `6` = 0.27, `5` = 0.31, `7` = 0.15, `4` = 0.17), row.names = 1L, class = "data.frame"))`: cannot xtfrm data frames
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test_bayesRegress.R:35: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. └─mmb::bayesRegress(...) at test_bayesRegress.R:36:5
7. ├─base::xtfrm(`<df[,8]>`)
8. └─base::xtfrm.data.frame(`<df[,8]>`)
── Error ('test_bayesRegress.R:53:5'): custom regressor errors are handled properly ──
Error in `xtfrm.data.frame(structure(list(rowname = "1", `3` = 1.1, `1` = 0, `2` = 0), row.names = 1L, class = "data.frame"))`: cannot xtfrm data frames
Backtrace:
▆
1. ├─testthat::expect_warning(...) at test_bayesRegress.R:52: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. └─mmb::bayesRegress(...) at test_bayesRegress.R:53:5
7. ├─base::xtfrm(`<df[,4]>`)
8. └─base::xtfrm.data.frame(`<df[,4]>`)
── Error ('test_bayesRegress.R:120:3'): regression for multiple values works in simple and online, too ──
Error in `xtfrm.data.frame(structure(list(rowname = "1", `2` = 0.186029411764706, `1` = 0.071875, `3` = 0.167013888888889, `4` = 0.00379322681452557, `6` = 0.00570421505598071, `5` = 1.49004290740905, `7` = 0.174182093347807), row.names = 1L, class = "data.frame"))`: cannot xtfrm data frames
Backtrace:
▆
1. └─mmb::bayesRegressAssign(...) at test_bayesRegress.R:120:3
2. └─mmb::bayesRegress(...)
3. ├─base::xtfrm(`<df[,8]>`)
4. └─base::xtfrm.data.frame(`<df[,8]>`)
── Failure ('test_discretization.R:68:3'): numRanges is not required ───────────
Expected `discretizeVariableToRanges(c(1))` to produce warnings.
── Failure ('test_pdfAndProb.R:11:3'): estimation for small data works ─────────
Expected `{ ... }` to produce warnings.
── Failure ('test_pdfAndProb.R:19:3'): estimation for small data works ─────────
Expected `{ ... }` to produce warnings.
── Failure ('test_warnings.R:16:3'): en-/disabling warnings/errors works ───────
Expected `mmb::getWarnings()` to be TRUE.
Differences:
`actual`: FALSE
`expected`: TRUE
[ FAIL 10 | WARN 139 | SKIP 0 | PASS 308 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [5s/6s] OK
- checking PDF version of manual ... [4s/7s] OK
- checking HTML version of manual ... [2s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs, 1 NOTE