* using log directory ‘/Users/ripley/R/packages/tests-devel/prediction.Rcheck’ * using R Under development (unstable) (2024-04-29 r86495) * using platform: aarch64-apple-darwin23.4.0 * R was compiled by Apple clang version 15.0.0 (clang-1500.3.9.4) GNU Fortran (GCC) 12.2.0 * running under: macOS Sonoma 14.4.1 * 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 ... OK * checking installed package size ... OK * 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 ... OK * checking Rd files ... OK * checking Rd metadata ... 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 ... Running ‘testthat-prediction.R’ ERROR 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 ... OK * checking HTML version of manual ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR See ‘/Users/ripley/R/packages/tests-devel/prediction.Rcheck/00check.log’ for details. 24.16 real 19.43 user 3.39 sys