* using log directory 'd:/Rcompile/CRANpkg/local/4.4/pmml.Rcheck' * using R version 4.4.3 (2025-02-28 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 13.3.0 GNU Fortran (GCC) 13.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'pmml' can be installed ... OK * checking installed package size ... OK * 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 ... [1s] OK * checking whether the package can be loaded with stated dependencies ... [1s] OK * checking whether the package can be unloaded cleanly ... [1s] OK * checking whether the namespace can be loaded with stated dependencies ... [1s] OK * checking whether the namespace can be unloaded cleanly ... [1s] OK * checking loading without being on the library search path ... [1s] 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 ... [28s] OK * checking Rd files ... [2s] 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 ... [0s] OK * checking data for ASCII and uncompressed saves ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [6s] OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [62s] ERROR Running 'testthat.R' [62s] 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 ... [8s] OK * checking PDF version of manual ... [20s] OK * checking HTML version of manual ... [9s] OK * DONE Status: 1 ERROR