Package: xrf 0.2.2
Check: tests, Result: ERROR
    Running ‘testthat.R’
  Running the tests in ‘tests/testthat.R’ failed.
  Last 13 lines of output:
     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
