CRAN Package Check Results for Maintainer ‘Karl Holub <karljholub at gmail.com>’

Last updated on 2025-12-04 09:50:26 CET.

Package ERROR OK
xrf 2 11

Package xrf

Current CRAN status: ERROR: 2, OK: 11

Version: 0.2.2
Check: examples
Result: ERROR Running examples in ‘xrf-Ex.R’ failed The error most likely occurred in: > ### Name: summary.xrf > ### Title: Summarize an eXtreme RuleFit model > ### Aliases: summary.xrf > > ### ** Examples > > m <- xrf(Petal.Length ~ ., iris, + xgb_control = list(nrounds = 2, max_depth = 2), + family = 'gaussian') Warning in throw_err_or_depr_msg("Parameter(s) have been removed from this function: ", : Parameter(s) have been removed from this function: params. This warning will become an error in a future version. Warning in throw_err_or_depr_msg("Passed unrecognized parameters: ", paste(head(names_unrecognized), : Passed unrecognized parameters: verbose. This warning will become an error in a future version. Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", : Parameter 'data' has been renamed to 'x'. This warning will become an error in a future version. Warning in throw_err_or_depr_msg("Parameter '", match_old, "' has been renamed to '", : Parameter 'label' has been renamed to 'y'. This warning will become an error in a future version. > summary(m) An eXtreme RuleFit model of 11 rules. Original Formula: Petal.Length ~ Sepal.Length + Sepal.Width + Petal.Width + Species Tree model: Error in h(simpleError(msg, call)) : error in evaluating the argument 'object' in selecting a method for function 'show': length of 'dimnames' [1] not equal to array extent Calls: summary ... summary.default -> array -> .handleSimpleError -> h Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.2.2
Check: tests
Result: ERROR Running ‘testthat.R’ [24s/68s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(xrf) > > test_check("xrf") Saving _problems/test_model-39.R Saving _problems/test_model-48.R Saving _problems/test_model-56.R [ FAIL 3 | WARN 44 | SKIP 0 | PASS 12 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_model.R:38:3'): model from dense design matrix has expected fields ── 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. ├─xrf::xrf(...) at test_model.R:38:3 2. └─xrf:::xrf.formula(...) 3. └─xgboost::xgboost(...) 4. └─xgboost:::process.y.margin.and.objective(...) ── Error ('test_model.R:47:3'): model from sparse design matrix has expected fields ── 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. ├─xrf::xrf(...) at test_model.R:47:3 2. └─xrf:::xrf.formula(...) 3. └─xgboost::xgboost(...) 4. └─xgboost:::process.y.margin.and.objective(...) ── Error ('test_model.R:54:3'): model predicts binary outcome ────────────────── 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. ├─xrf::xrf(...) at test_model.R:54:3 2. └─xrf:::xrf.formula(...) 3. └─xgboost::xgboost(...) 4. └─xgboost:::process.y.margin.and.objective(...) [ FAIL 3 | WARN 44 | SKIP 0 | PASS 12 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.2.2
Check: tests
Result: ERROR Running ‘testthat.R’ [24s/62s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(xrf) > > test_check("xrf") Saving _problems/test_model-39.R Saving _problems/test_model-48.R Saving _problems/test_model-56.R [ FAIL 3 | WARN 44 | SKIP 0 | PASS 12 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_model.R:38:3'): model from dense design matrix has expected fields ── 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. ├─xrf::xrf(...) at test_model.R:38:3 2. └─xrf:::xrf.formula(...) 3. └─xgboost::xgboost(...) 4. └─xgboost:::process.y.margin.and.objective(...) ── Error ('test_model.R:47:3'): model from sparse design matrix has expected fields ── 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. ├─xrf::xrf(...) at test_model.R:47:3 2. └─xrf:::xrf.formula(...) 3. └─xgboost::xgboost(...) 4. └─xgboost:::process.y.margin.and.objective(...) ── Error ('test_model.R:54:3'): model predicts binary outcome ────────────────── 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. ├─xrf::xrf(...) at test_model.R:54:3 2. └─xrf:::xrf.formula(...) 3. └─xgboost::xgboost(...) 4. └─xgboost:::process.y.margin.and.objective(...) [ FAIL 3 | WARN 44 | SKIP 0 | PASS 12 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.