- using R Under development (unstable) (2024-04-23 r86476)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-13 (GCC) 13.2.0
GNU Fortran (GCC) 13.2.0
- running under: Fedora Linux 36 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘prediction/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘prediction’ version ‘0.3.17’
- package encoding: UTF-8
- 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 ‘prediction’ can be installed ... [8s/13s] OK
See the install log for details.
- checking package 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 ... OK
- checking whether the package can be loaded with stated dependencies ... OK
- checking whether the package can be unloaded cleanly ... OK
- checking whether the namespace can be loaded with stated dependencies ... OK
- checking whether the namespace can be unloaded cleanly ... OK
- checking loading without being on the library search path ... 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 ... [19s/19s] OK
- checking Rd files ... 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 ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [33s/34s] ERROR
Running ‘testthat-prediction.R’ [32s/33s]
Running the tests in ‘tests/testthat-prediction.R’ failed.
Complete output:
> library("testthat")
> library("prediction")
> test_check("prediction")
cyl x
4 26.38
6 20.63
8 14.88
(Intercept) tensionM tensionH
36.38889 -10.00000 -14.72222
[ FAIL 4 | WARN 2 | SKIP 0 | PASS 190 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('tests-methods.R:40:9'): Test prediction() for 'glimQL' ──────────────
Error in `model[["call"]]`: this S4 class is not subsettable
Backtrace:
▆
1. ├─prediction::prediction(m) at tests-methods.R:40:9
2. └─prediction:::prediction.glimQL(m)
3. ├─prediction::find_data(model, parent.frame())
4. └─prediction:::find_data.default(model, parent.frame())
── Error ('tests-methods.R:130:9'): Test prediction() for 'naiveBayes' ─────────
Error in `match.arg(type)`: 'arg' should be one of "class", "raw"
Backtrace:
▆
1. ├─prediction::prediction(m) at tests-methods.R:130:9
2. └─prediction:::prediction.default(m)
3. ├─stats::predict(...)
4. └─e1071:::predict.naiveBayes(...)
5. └─base::match.arg(type)
── Error ('tests-methods.R:275:9'): Test prediction() for 'lda' ────────────────
Error in `data.frame(..., check.rows = FALSE, check.names = FALSE, fix.empty.names = FALSE,
stringsAsFactors = FALSE)`: arguments imply differing number of rows: 75, 0
Backtrace:
▆
1. ├─prediction::prediction(m, data = train) at tests-methods.R:275:9
2. └─prediction:::prediction.default(m, data = train)
3. └─prediction:::make_data_frame(data, fitted = tmp[["fit"]], se.fitted = tmp[["se.fit"]])
4. └─base::data.frame(...)
── Error ('tests-methods.R:306:9'): Test prediction() for 'qda' ────────────────
Error in `data.frame(..., check.rows = FALSE, check.names = FALSE, fix.empty.names = FALSE,
stringsAsFactors = FALSE)`: arguments imply differing number of rows: 75, 0
Backtrace:
▆
1. ├─prediction::prediction(m, data = train) at tests-methods.R:306:9
2. └─prediction:::prediction.default(m, data = train)
3. └─prediction:::make_data_frame(data, fitted = tmp[["fit"]], se.fitted = tmp[["se.fit"]])
4. └─base::data.frame(...)
[ FAIL 4 | WARN 2 | SKIP 0 | PASS 190 ]
Error: Test failures
Execution halted
- checking PDF version of manual ... [10s/11s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR