Running ‘testthat.R’ [59s/49s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(xgboost)
  > 
  > test_check("xgboost", reporter = ProgressReporter)
  ✔ | F W S  OK | Context
  
  ⠏ |         0 | basic                                                           
  ⠏ |         0 | basic functions                                                 
  ⠋ |         1 | basic functions                                                 
  ⠸ |         4 | basic functions                                                 [16:44:22] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
  [1]	train-rmse:1.678965 
  [2]	train-rmse:1.678965 
  [3]	train-rmse:1.524624 
  [4]	train-rmse:1.441523 
  [5]	train-rmse:1.437758 
  [6]	train-rmse:1.377895 
  [7]	train-rmse:1.305894 
  [8]	train-rmse:1.336120 
  [9]	train-rmse:1.316072 
  [10]	train-rmse:1.316031 
  [11]	train-rmse:1.319404 
  [12]	train-rmse:1.235097 
  [13]	train-rmse:1.225430 
  [14]	train-rmse:1.221079 
  [15]	train-rmse:1.235220 
  [16]	train-rmse:1.219153 
  [17]	train-rmse:1.226439 
  [18]	train-rmse:1.235026 
  [19]	train-rmse:1.244651 
  [20]	train-rmse:1.253197 
  [21]	train-rmse:1.262494 
  [22]	train-rmse:1.272865 
  [23]	train-rmse:1.276073 
  [24]	train-rmse:1.277040 
  [25]	train-rmse:1.287974 
  [26]	train-rmse:1.289816 
  [27]	train-rmse:1.292365 
  [28]	train-rmse:1.282785 
  [29]	train-rmse:1.283805 
  [30]	train-rmse:1.290661 
  [31]	train-rmse:1.289439 
  [32]	train-rmse:1.281995 
  [16:44:22] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
  
  ⠼ |        15 | basic functions                                                 [16:44:22] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
  [16:44:22] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
  
  ⠇ |        29 | basic functions                                                 [1]	train-error:0.028405 
  [16:44:22] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
  
  ⠋ |        41 | basic functions                                                 [16:44:22] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
  
  ⠋ |        51 | basic functions                                                 [1]	train-logloss:0.439409 
  [2]	train-logloss:0.299260 
  [3]	train-logloss:0.209937 
  [4]	train-logloss:0.150151 
  
  ⠏ |        60 | basic functions                                                 [1]	train-logloss:0.233470+0.001565	test-logloss:0.233607+0.004930 
  [2]	train-logloss:0.136851+0.001767	test-logloss:0.137010+0.006645 
  [1]	train-logloss:0.233482+0.001761	test-logloss:0.233527+0.005591 
  [2]	train-logloss:0.136860+0.002158	test-logloss:0.136933+0.007299 
  
  ⠋ |        71 | basic functions                                                 
  ⠹ |        73 | basic functions                                                 
  ⠦ |        77 | basic functions                                                 [1]	train-logloss:0.380598 
  [2]	train-logloss:0.247331 
  [3]	train-logloss:0.175047 
  [4]	train-logloss:0.122301 
  [5]	train-logloss:0.089889 
  [1]	train-logloss:0.497338 
  [2]	train-logloss:0.357306 
  [3]	train-logloss:0.257215 
  [4]	train-logloss:0.184518 
  [5]	train-logloss:0.132113 
  
  ⠸ |        84 | basic functions                                                 [1]	train-error:0.046522	train-auc:0.958228	train-logloss:0.233376 
  [2]	train-error:0.022263	train-auc:0.981413	train-logloss:0.136658 
  [1]	train-merror:0.040000 
  [2]	train-merror:0.026667 
  [1]	train-error:0.046522	train-auc:0.958228	train-logloss:0.482541 
  [2]	train-error:0.046522	train-auc:0.987161	train-logloss:0.359536 
  
  ⠸ |        94 | basic functions                                                 
  ✔ |       100 | basic functions [4.8s]
  
  ⠏ |         0 | callbacks                                                       
  ⠏ |         0 | callbacks                                                       [1]	train-auc:0.900000	test-auc:0.800000 
  
  ⠏ |        10 | callbacks                                                       
  ⠴ |        26 | callbacks                                                       
  ⠴ |        36 | callbacks                                                       
  ⠹ |        43 | callbacks                                                       
  ⠙ |   1    51 | callbacks                                                       
  ⠹ |   1    62 | callbacks                                                       [16:44:27] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
  [1]	train-auc:0.829749 
  Will train until train_auc hasn't improved in 3 rounds.
  
  [2]	train-auc:0.829749 
  [3]	train-auc:0.829749 
  [4]	train-auc:0.829749 
  Stopping. Best iteration:
  [1]	train-auc:0.829749
  
  
  ⠏ |   1    69 | callbacks                                                       
  ⠼ |   1    74 | callbacks                                                       
  ⠇ |   1    78 | callbacks                                                       
  ⠼ |   1    84 | callbacks                                                       
  ✔ |   1    95 | callbacks [1.7s]
  ────────────────────────────────────────────────────────────────────────────────
  Warning (test_callbacks.R:196:3): cb.save.model works as expected
  one argument not used by format 'xgboost.json'
  Backtrace:
   1. xgboost::xgb.train(...)
        at test_callbacks.R:196:2
   2. xgboost f()
   4. base::sprintf(save_name, env$iteration)
  ────────────────────────────────────────────────────────────────────────────────
  
  ⠏ |         0 | config                                                          
  ⠏ |         0 | Test global configuration                                       
  ✔ |         8 | Test global configuration
  
  ⠏ |         0 | custom_objective                                                
  ⠏ |         0 | Test models with custom objective                               [1]	eval-error:0.042831	train-error:0.046522 
  [2]	eval-error:0.021726	train-error:0.022263 
  
  ⠼ |         5 | Test models with custom objective                               [1]	eval-error:0.042831	train-error:0.046522 
  [2]	eval-error:0.021726	train-error:0.022263 
  [3]	eval-error:0.018001	train-error:0.015200 
  [4]	eval-error:0.018001	train-error:0.015200 
  [5]	eval-error:0.006207	train-error:0.007063 
  [6]	eval-error:0.000000	train-error:0.001228 
  [7]	eval-error:0.000000	train-error:0.001228 
  [8]	eval-error:0.000000	train-error:0.001228 
  [9]	eval-error:0.000000	train-error:0.001228 
  [10]	eval-error:0.000000	train-error:0.000000 
  [1]	eval-error:0.042831	train-error:0.046522 
  [2]	eval-error:0.021726	train-error:0.022263 
  
  ✔ |        12 | Test models with custom objective [0.3s]
  
  ⠏ |         0 | dmatrix                                                         
  ⠏ |         0 | testing xgb.DMatrix functionality                               
  ⠋ |        21 | testing xgb.DMatrix functionality                               
  ⠋ |   1    30 | testing xgb.DMatrix functionality                               
  ⠙ |   1    31 | testing xgb.DMatrix functionality                               
  ✔ |   1    37 | testing xgb.DMatrix functionality [0.4s]
  ────────────────────────────────────────────────────────────────────────────────
  Warning (test_dmatrix.R:68:3): xgb.DMatrix: getinfo & setinfo
  NAs introduced by coercion
  Backtrace:
   1. testthat::expect_error(setinfo(dtest, "weight", rep("a", nrow(test_data))))
        at test_dmatrix.R:68:2
   7. xgboost:::setinfo.xgb.DMatrix(dtest, "weight", rep("a", nrow(test_data)))
  ────────────────────────────────────────────────────────────────────────────────
  
  ⠏ |         0 | feature_weights                                                 
  ⠏ |         0 | feature weights                                                 
  ⠹ |         3 | feature weights                                                 
  ✔ |         6 | feature weights [0.2s]
  
  ⠏ |         0 | gc_safety                                                       
  ⠏ |         0 | Garbage Collection Safety Check                                 [1]	train-logloss:0.233376 
  [2]	train-logloss:0.136658 
  
  ⠋ |         1 | Garbage Collection Safety Check                                 
  ✔ |         1 | Garbage Collection Safety Check [31.3s]
  
  ⠏ |         0 | glm                                                             
  ⠏ |         0 | Test generalized linear models                                  
  ⠴ |         6 | Test generalized linear models                                  
  ⠧ |         8 | Test generalized linear models                                  [1]	eval-error:0.002483	train-error:0.004760 
  Multiple eval metrics are present. Will use train_error for early stopping.
  Will train until train_error hasn't improved in 1 rounds.
  
  [2]	eval-error:0.000621	train-error:0.002610 
  [3]	eval-error:0.000000	train-error:0.001842 
  [4]	eval-error:0.000000	train-error:0.001228 
  [5]	eval-error:0.000000	train-error:0.000614 
  [6]	eval-error:0.000000	train-error:0.000614 
  Stopping. Best iteration:
  [5]	eval-error:0.000000	train-error:0.000614
  
  
  ⠙ |        12 | Test generalized linear models                                  [1]	eval-error:0.002483	train-error:0.004760 
  Multiple eval metrics are present. Will use train_error for early stopping.
  Will train until train_error hasn't improved in 1 rounds.
  
  [2]	eval-error:0.000621	train-error:0.002610 
  [3]	eval-error:0.000000	train-error:0.001842 
  [4]	eval-error:0.000000	train-error:0.001228 
  [5]	eval-error:0.000000	train-error:0.000614 
  [6]	eval-error:0.000000	train-error:0.000614 
  Stopping. Best iteration:
  [5]	eval-error:0.000000	train-error:0.000614
  
  
  ✔ |        13 | Test generalized linear models [0.4s]
  
  ⠏ |         0 | helpers                                                         
  ⠏ |         0 | Test helper functions                                           
  ✖ | 1 1     0 | Test helper functions
  ────────────────────────────────────────────────────────────────────────────────
  Warning (test_helpers.R:15:1): (code run outside of `test_that()`)
  data set 'Arthritis' not found
  Backtrace:
   1. utils::data(Arthritis)
        at test_helpers.R:15:0
  
  Error (test_helpers.R:16:1): (code run outside of `test_that()`)
  Error in `data.table(Arthritis, keep.rownames = FALSE)`: object 'Arthritis' not found
  Backtrace:
   1. data.table::data.table(Arthritis, keep.rownames = FALSE)
        at test_helpers.R:16:0
  ────────────────────────────────────────────────────────────────────────────────
  
  ⠏ |         0 | interaction_constraints                                         
  ⠏ |         0 | interaction constraints                                         
  ⠙ |         2 | interaction constraints                                         
  ✔ |         2 | interaction constraints [4.3s]
  
  ⠏ |         0 | interactions                                                    
  ⠏ |         0 | Test prediction of feature interactions                         
  ⠸ |         4 | Test prediction of feature interactions                         
  ⠙ |        12 | Test prediction of feature interactions                         [1]	train-logloss:0.482541 
  [2]	train-logloss:0.359536 
  [3]	train-logloss:0.279935 
  [4]	train-logloss:0.218599 
  
  ✔ |        19 | Test prediction of feature interactions [0.6s]
  
  ⠏ |         0 | io                                                              
  ⠏ |         0 | Test model IO.                                                  [1]	train-logloss:0.439409 
  [2]	train-logloss:0.299260 
  [3]	train-logloss:0.209937 
  [4]	train-logloss:0.150151 
  [5]	train-logloss:0.108673 
  [6]	train-logloss:0.079348 
  [7]	train-logloss:0.058385 
  [8]	train-logloss:0.043147 
  
  ✔ |         2 | Test model IO.
  
  ⠏ |         0 | model_compatibility                                             
  ⠏ |         0 | Models from previous versions of XGBoost can be loaded          
  ⠋ |         1 | Models from previous versions of XGBoost can be loaded          
  ⠸ |        14 | Models from previous versions of XGBoost can be loaded          
  ⠼ |        65 | Models from previous versions of XGBoost can be loaded          
  ⠦ |       127 | Models from previous versions of XGBoost can be loaded          
  ⠼ |       195 | Models from previous versions of XGBoost can be loaded          
  ✔ |       243 | Models from previous versions of XGBoost can be loaded [1.8s]
  
  ⠏ |         0 | monotone                                                        
  ⠏ |         0 | monotone constraints                                            
  ✔ |         1 | monotone constraints
  
  ⠏ |         0 | parameter_exposure                                              
  ⠏ |         0 | Test model params and call are exposed to R                     
  ✔ |         6 | Test model params and call are exposed to R
  
  ⠏ |         0 | poisson_regression                                              
  ⠏ |         0 | Test Poisson regression model                                   
  ✔ |         3 | Test Poisson regression model
  
  ⠏ |         0 | ranking                                                         
  ⠏ |         0 | Learning to rank                                                [1]	train-auc:0.575000	train-aucpr:0.550000 
  [2]	train-auc:0.650000	train-aucpr:0.700000 
  [3]	train-auc:0.725000	train-aucpr:0.850000 
  [4]	train-auc:0.800000	train-aucpr:1.000000 
  [5]	train-auc:0.800000	train-aucpr:1.000000 
  [6]	train-auc:0.800000	train-aucpr:1.000000 
  [7]	train-auc:0.800000	train-aucpr:1.000000 
  [8]	train-auc:0.800000	train-aucpr:1.000000 
  [9]	train-auc:0.800000	train-aucpr:1.000000 
  [10]	train-auc:0.800000	train-aucpr:1.000000 
  [1]	train-auc:0.575000	train-aucpr:0.550000 
  [2]	train-auc:0.650000	train-aucpr:0.700000 
  [3]	train-auc:0.725000	train-aucpr:0.850000 
  [4]	train-auc:0.725000	train-aucpr:0.850000 
  [5]	train-auc:0.725000	train-aucpr:0.850000 
  [6]	train-auc:0.725000	train-aucpr:0.850000 
  [7]	train-auc:0.725000	train-aucpr:0.850000 
  [8]	train-auc:0.800000	train-aucpr:1.000000 
  [9]	train-auc:0.800000	train-aucpr:1.000000 
  [10]	train-auc:0.800000	train-aucpr:1.000000 
  [16:45:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
  [16:45:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
  [16:45:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
  [16:45:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
  [16:45:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
  [16:45:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
  [16:45:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
  [16:45:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
  [16:45:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
  [16:45:08] WARNING: amalgamation/../src/c_api/c_api.cc:785: `ntree_limit` is deprecated, use `iteration_range` instead.
  
  ✔ |        14 | Learning to rank
  
  ⠏ |         0 | update                                                          
  ⠏ |         0 | update trees in an existing model                               [16:45:08] WARNING: amalgamation/../src/gbm/gbtree.cc:82: DANGER AHEAD: You have manually specified `updater` parameter. The `tree_method` parameter will be ignored. Incorrect sequence of updaters will produce undefined behavior. For common uses, we recommend using `tree_method` parameter instead.
  
  ⠋ |         1 | update trees in an existing model                               [16:45:08] WARNING: amalgamation/../src/gbm/gbtree.cc:82: DANGER AHEAD: You have manually specified `updater` parameter. The `tree_method` parameter will be ignored. Incorrect sequence of updaters will produce undefined behavior. For common uses, we recommend using `tree_method` parameter instead.
  [16:45:08] WARNING: amalgamation/../src/gbm/gbtree.cc:82: DANGER AHEAD: You have manually specified `updater` parameter. The `tree_method` parameter will be ignored. Incorrect sequence of updaters will produce undefined behavior. For common uses, we recommend using `tree_method` parameter instead.
  [16:45:08] WARNING: amalgamation/../src/gbm/gbtree.cc:82: DANGER AHEAD: You have manually specified `updater` parameter. The `tree_method` parameter will be ignored. Incorrect sequence of updaters will produce undefined behavior. For common uses, we recommend using `tree_method` parameter instead.
  
  ⠇ |         9 | update trees in an existing model                               [16:45:08] WARNING: amalgamation/../src/gbm/gbtree.cc:82: DANGER AHEAD: You have manually specified `updater` parameter. The `tree_method` parameter will be ignored. Incorrect sequence of updaters will produce undefined behavior. For common uses, we recommend using `tree_method` parameter instead.
  [16:45:08] WARNING: amalgamation/../src/gbm/gbtree.cc:82: DANGER AHEAD: You have manually specified `updater` parameter. The `tree_method` parameter will be ignored. Incorrect sequence of updaters will produce undefined behavior. For common uses, we recommend using `tree_method` parameter instead.
  
  ✔ |        22 | update trees in an existing model [0.4s]
  
  ══ Results ═════════════════════════════════════════════════════════════════════
  Duration: 46.6 s
  
  [ FAIL 1 | WARN 3 | SKIP 0 | PASS 584 ]
  Error: Test failures
  Execution halted