- using R Under development (unstable) (2025-12-02 r89085)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
GNU Fortran (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘pmml/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘pmml’ version ‘2.5.2’
- 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 ‘pmml’ can be installed ... [24s/74s] OK
See the install log for details.
- checking package directory ... 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 ... 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 ... [56s/236s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [3s/11s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [96s/341s] ERROR
Running ‘testthat.R’ [95s/340s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(pmml, quietly = T)
>
> test_check("pmml")
Saving _problems/test_pmml.xgb.Booster-59.R
Saving _problems/test_pmml.xgb.Booster-74.R
Saving _problems/test_pmml.xgb.Booster-102.R
[ FAIL 6 | WARN 26 | SKIP 51 | PASS 356 ]
══ Skipped tests (51) ══════════════════════════════════════════════════════════
• On CRAN (48): 'test_pmml.iForest.R:6:3',
'test_pmml_integration_ARIMA.R:109:3', 'test_pmml_integration_ARIMA.R:184:3',
'test_pmml_integration_ARIMA.R:269:3',
'test_pmml_integration_e1071_svm.R:27:3',
'test_pmml_integration_e1071_svm.R:275:3', 'test_pmml_integration_lm.R:13:3',
'test_pmml_integration_lm.R:123:3', 'test_pmml_integration_lm.R:175:3',
'test_pmml_integration_other.R:120:3', 'test_pmml_integration_other.R:167:3',
'test_pmml_integration_other.R:265:3', 'test_pmml_integration_other.R:439:3',
'test_pmml_integration_other.R:607:3', 'test_pmml_integration_other.R:692:3',
'test_pmml_integration_other.R:849:3',
'test_pmml_integration_other.R:1062:3',
'test_pmml_integration_other.R:1322:3',
'test_pmml_integration_other.R:1442:3',
'test_pmml_integration_other.R:1547:3',
'test_pmml_integration_other.R:1633:3',
'test_pmml_integration_other.R:1822:3',
'test_pmml_integration_transformations.R:19:3',
'test_pmml_integration_transformations.R:319:3',
'test_pmml_integration_transformations.R:354:3',
'test_pmml_integration_transformations.R:377:3',
'test_pmml_integration_transformations.R:407:3',
'test_pmml_integration_transformations.R:469:3',
'test_pmml_integration_xgboost.R:21:3', 'test_schema_validation.R:135:3',
'test_schema_validation.R:183:3', 'test_schema_validation.R:204:3',
'test_schema_validation.R:248:3', 'test_schema_validation.R:343:3',
'test_schema_validation.R:426:3', 'test_schema_validation.R:458:3',
'test_schema_validation.R:500:3', 'test_schema_validation.R:603:3',
'test_schema_validation.R:795:3', 'test_schema_validation.R:933:3',
'test_schema_validation.R:1008:3', 'test_schema_validation.R:1045:3',
'test_schema_validation.R:1077:3', 'test_schema_validation.R:1146:3',
'test_schema_validation.R:1193:3', 'test_schema_validation.R:1429:3',
'test_schema_validation.R:1510:3', 'test_schema_validation.R:1540:3'
• skip (2): 'test_pmml_integration_lm.R:147:3',
'test_pmml_integration_transformations.R:439:3'
• skip until export issue is resolved (1): 'test_pmml.nnet.R:66:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_pmml.miningschema.R:29:3'): invalidValueTreatment attribute is exported correctly for xgboost models ──
Error in `process.y.margin.and.objective(y, base_margin, objective, params)`: Got numeric 'y' - supported objectives for this data are: reg:squarederror, reg:squaredlogerror, reg:logistic, reg:pseudohubererror, reg:absoluteerror, reg:quantileerror, count:poisson, reg:gamma, reg:tweedie. Was passed: binary:logistic
Backtrace:
▆
1. ├─utils::capture.output(...) at test_pmml.miningschema.R:29:3
2. │ └─base::withVisible(...elt(i))
3. └─xgboost::xgboost(...)
4. └─xgboost:::process.y.margin.and.objective(...)
── Error ('test_pmml.miningschema.R:286:3'): error is thrown if invalidValueTreatment argument is incorrect ──
Error in `process.y.margin.and.objective(y, base_margin, objective, params)`: Got numeric 'y' - supported objectives for this data are: reg:squarederror, reg:squaredlogerror, reg:logistic, reg:pseudohubererror, reg:absoluteerror, reg:quantileerror, count:poisson, reg:gamma, reg:tweedie. Was passed: binary:logistic
Backtrace:
▆
1. ├─utils::capture.output(...) at test_pmml.miningschema.R:286:3
2. │ └─base::withVisible(...elt(i))
3. └─xgboost::xgboost(...)
4. └─xgboost:::process.y.margin.and.objective(...)
── Error ('test_pmml.xgb.Booster.R:18:3'): discrete variables are one-hot-encoded ──
Error in `process.y.margin.and.objective(y, base_margin, objective, params)`: Got numeric 'y' - supported objectives for this data are: reg:squarederror, reg:squaredlogerror, reg:logistic, reg:pseudohubererror, reg:absoluteerror, reg:quantileerror, count:poisson, reg:gamma, reg:tweedie. Was passed: binary:logistic
Backtrace:
▆
1. ├─utils::capture.output(...) at test_pmml.xgb.Booster.R:18:3
2. │ └─base::withVisible(...elt(i))
3. └─xgboost::xgboost(...)
4. └─xgboost:::process.y.margin.and.objective(...)
── Failure ('test_pmml.xgb.Booster.R:52:3'): error is thrown when objective = reg:linear ──
`pmml(...)` threw an error with unexpected message.
Expected match: "Only the following objectives are supported: multi:softprob, multi:softmax, binary:logistic."
Actual message: "argument is of length zero"
Backtrace:
▆
1. ├─testthat::expect_error(...) at test_pmml.xgb.Booster.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. ├─pmml::pmml(...)
7. └─pmml::pmml.xgb.Booster(...)
── Error ('test_pmml.xgb.Booster.R:70:3'): error is thrown when objective = reg:logistic ──
Error in `prescreen.objective(objective)`: Objectives with non-default prediction mode (reg:logistic, binary:logitraw, multi:softmax) are not supported in 'xgboost()'. Try 'xgb.train()'.
Backtrace:
▆
1. └─xgboost::xgboost(...) at test_pmml.xgb.Booster.R:70:3
2. └─xgboost:::prescreen.objective(objective)
── Error ('test_pmml.xgb.Booster.R:97:3'): error is thrown when objective = binary:logitraw ──
Error in `prescreen.objective(objective)`: Objectives with non-default prediction mode (reg:logistic, binary:logitraw, multi:softmax) are not supported in 'xgboost()'. Try 'xgb.train()'.
Backtrace:
▆
1. └─xgboost::xgboost(...) at test_pmml.xgb.Booster.R:97:3
2. └─xgboost:::prescreen.objective(objective)
[ FAIL 6 | WARN 26 | SKIP 51 | PASS 356 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [25s/78s] OK
- checking PDF version of manual ... [10s/24s] OK
- checking HTML version of manual ... [8s/25s] OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR