Running ‘testthat.R’ [30s/25s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(xgboost)
  > library(Matrix)
  > 
  > test_check("xgboost", reporter = ProgressReporter)
  ✔ | F W  S  OK | Context
  
  ⠏ |          0 | basic                                                          
  ⠏ |          0 | basic functions                                                
  ⠸ |          4 | basic functions                                                
  ⠦ |         17 | basic functions                                                
  ⠼ |         35 | basic functions                                                
  ⠙ |         42 | basic functions                                                
  ⠸ |         54 | basic functions                                                
  ⠴ |         66 | basic functions                                                
  ⠏ |         70 | basic functions                                                
  ⠙ |         72 | basic functions                                                
  ⠇ |         79 | basic functions                                                
  ⠸ |         84 | basic functions                                                
  ⠴ |         96 | basic functions                                                
  ⠸ |        114 | basic functions                                                
  ⠇ |        129 | basic functions                                                
  ⠴ |        146 | basic functions                                                
  ✔ |        156 | basic functions [6.0s]
  
  ⠏ |          0 | booster_slicing                                                
  ⠏ |          0 | testing xgb.Booster slicing                                    
  ⠴ |          6 | testing xgb.Booster slicing                                    
  ⠙ |         22 | testing xgb.Booster slicing                                    
  ✔ |         23 | testing xgb.Booster slicing
  
  ⠏ |          0 | callbacks                                                      
  ⠏ |          0 | callbacks                                                      
  ⠴ |          6 | callbacks                                                      
  ⠋ |         21 | callbacks                                                      
  ⠹ |         33 | callbacks                                                      
  ⠹ |         43 | callbacks                                                      
  ⠇ |         49 | callbacks                                                      
  ⠼ |         55 | callbacks                                                      
  ⠸ |         64 | callbacks                                                      
  ⠦ |         77 | callbacks                                                      
  ⠼ |         85 | callbacks                                                      
  ⠹ |         93 | callbacks                                                      
  ⠇ |         99 | callbacks                                                      
  ⠙ |        112 | callbacks                                                      
  ✔ |        114 | callbacks [1.7s]
  
  ⠏ |          0 | config                                                         
  ⠏ |          0 | Test global configuration                                      
  ✔ |          8 | Test global configuration
  
  ⠏ |          0 | custom_objective                                               
  ⠏ |          0 | Test models with custom objective                              
  ⠼ |          5 | Test models with custom objective                              
  ⠼ |         15 | Test models with custom objective                              
  ✔ |         18 | Test models with custom objective
  
  ⠏ |          0 | dmatrix                                                        
  ⠏ |          0 | testing xgb.DMatrix functionality                              [16:25:30] WARNING: src/data/data.cc:937: Text file input has been deprecated since 3.1
  
  ⠴ |         16 | testing xgb.DMatrix functionality                              
  ⠸ |         34 | testing xgb.DMatrix functionality                              
  ⠇ |         39 | testing xgb.DMatrix functionality                              
  ⠧ |         48 | testing xgb.DMatrix functionality                              
  ⠙ |         62 | testing xgb.DMatrix functionality                              
  ⠦ |         67 | testing xgb.DMatrix functionality                              
  ⠋ |         71 | testing xgb.DMatrix functionality                              
  ⠼ |         85 | testing xgb.DMatrix functionality                              
  ⠹ |         93 | testing xgb.DMatrix functionality                              
  ⠦ |        117 | testing xgb.DMatrix functionality                              
  ⠏ |        140 | testing xgb.DMatrix functionality                              
  ✔ |        143 | testing xgb.DMatrix functionality [1.4s]
  
  ⠏ |          0 | feature_weights                                                
  ⠏ |          0 | feature weights                                                
  ⠹ |          3 | feature weights                                                
  ✔ |          4 | feature weights
  
  ⠏ |          0 | glm                                                            
  ⠏ |          0 | Test generalized linear models                                 
  ⠸ |          4 | Test generalized linear models                                 
  ⠦ |          7 | Test generalized linear models                                 
  ⠇ |          9 | Test generalized linear models                                 
  ⠙ |         12 | Test generalized linear models                                 
  ✔ |         13 | Test generalized linear models
  
  ⠏ |          0 | helpers                                                        
  ⠏ |          0 | Test helper functions                                          
  ⠋ |          1 | Test helper functions                                          
  ⠼ |         15 | Test helper functions                                          
  ⠙ |         42 | Test helper functions                                          
  ⠼ |        115 | Test helper functions                                          
  ⠙ |        192 | Test helper functions                                          
  ⠸ |        244 | Test helper functions                                          
  ⠙ |        332 | Test helper functions                                          
  ⠋ |        411 | Test helper functions                                          
  ⠇ |        459 | Test helper functions                                          
  ⠏ |        530 | Test helper functions                                          
  ⠇ |        609 | Test helper functions                                          
  ⠙ |        662 | Test helper functions                                          
  ⠴ |        676 | Test helper functions                                          
  ⠦ |        677 | Test helper functions                                          
  ⠹ |        683 | Test helper functions                                          
  ⠙ |        692 | Test helper functions                                          
  ⠴ | 2      694 | Test helper functions                                          
  ⠦ | 2      695 | Test helper functions                                          
  ⠹ | 2      711 | Test helper functions                                          
  ⠴ | 2      714 | Test helper functions                                          
  ⠋ | 2      729 | Test helper functions                                          
  ⠼ | 2      773 | Test helper functions                                          
  ✖ | 2      786 | Test helper functions [4.1s]
  ────────────────────────────────────────────────────────────────────────────────
  Error ('test_helpers.R:452:3'): xgb.plot.tree works with and without feature names
  Error: The DiagrammeR package is required for xgb.plot.tree
  Backtrace:
      ▆
   1. ├─testthat::expect_silent(xgb.plot.tree(model = bst.Tree.unnamed)) at test_helpers.R:452:3
   2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ ├─withr::with_output_sink(...)
   5. │   │ │ └─base::force(code)
   6. │   │ ├─base::withCallingHandlers(...)
   7. │   │ └─base::withVisible(code)
   8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   9. └─xgboost::xgb.plot.tree(model = bst.Tree.unnamed)
  
  Error ('test_helpers.R:471:3'): xgb.plot.multi.trees works with and without feature names
  Error in `xgb.plot.multi.trees(model = bst.Tree.unnamed, features_keep = 3)`: DiagrammeR is required for xgb.plot.multi.trees
  Backtrace:
      ▆
   1. └─xgboost::xgb.plot.multi.trees(model = bst.Tree.unnamed, features_keep = 3) at test_helpers.R:471:3
  ────────────────────────────────────────────────────────────────────────────────
  
  ⠏ |          0 | interaction_constraints                                        
  ⠏ |          0 | interaction constraints                                        
  ⠙ |          2 | interaction constraints                                        
  ✔ |          2 | interaction constraints [4.0s]
  
  ⠏ |          0 | interactions                                                   
  ⠏ |          0 | Test prediction of feature interactions                        
  ⠸ |          4 | Test prediction of feature interactions                        
  ⠸ |         14 | Test prediction of feature interactions                        
  ✔ |         19 | Test prediction of feature interactions
  
  ⠏ |          0 | io                                                             
  ⠏ |          0 | Test model IO.                                                 
  ✔ |          5 | 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         
  ⠇ |         29 | Models from previous versions of XGBoost can be loaded         
  ⠏ |         80 | Models from previous versions of XGBoost can be loaded         
  ⠧ |        118 | Models from previous versions of XGBoost can be loaded         
  ✔ |        146 | Models from previous versions of XGBoost can be loaded [1.5s]
  
  ⠏ |          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                                  
  ✔ |          6 | Test Poisson regression model
  
  ⠏ |          0 | ranking                                                        
  ⠏ |          0 | Learning to rank                                               
  ✔ |         14 | Learning to rank
  
  ⠏ |          0 | unicode                                                        
  ⠏ |          0 | Test Unicode handling                                          
  ✔ |          3 | Test Unicode handling
  
  ⠏ |          0 | update                                                         
  ⠏ |          0 | update trees in an existing model                              
  ⠋ |          1 | update trees in an existing model                              
  ⠇ |          9 | update trees in an existing model                              
  ⠹ |         23 | update trees in an existing model                              
  ✔ |         26 | update trees in an existing model
  
  ⠏ |          0 | xgboost                                                        
  ⠧ |         28 | xgboost                                                        
  ⠹ |         63 | xgboost                                                        
  ⠸ |         84 | xgboost                                                        
  ⠙ |        102 | xgboost                                                        
  ⠹ |        133 | xgboost                                                        
  ⠸ |        154 | xgboost                                                        
  ⠼ |        195 | xgboost                                                        
  ⠼ |        225 | xgboost                                                        
  ⠏ |        300 | xgboost                                                        
  ⠧ |        368 | xgboost                                                        
  ✔ |        369 | xgboost [1.3s]
  
  ══ Results ═════════════════════════════════════════════════════════════════════
  Duration: 22.9 s
  
  ── Failed tests ────────────────────────────────────────────────────────────────
  Error ('test_helpers.R:452:3'): xgb.plot.tree works with and without feature names
  Error: The DiagrammeR package is required for xgb.plot.tree
  Backtrace:
      ▆
   1. ├─testthat::expect_silent(xgb.plot.tree(model = bst.Tree.unnamed)) at test_helpers.R:452:3
   2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ ├─withr::with_output_sink(...)
   5. │   │ │ └─base::force(code)
   6. │   │ ├─base::withCallingHandlers(...)
   7. │   │ └─base::withVisible(code)
   8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   9. └─xgboost::xgb.plot.tree(model = bst.Tree.unnamed)
  
  Error ('test_helpers.R:471:3'): xgb.plot.multi.trees works with and without feature names
  Error in `xgb.plot.multi.trees(model = bst.Tree.unnamed, features_keep = 3)`: DiagrammeR is required for xgb.plot.multi.trees
  Backtrace:
      ▆
   1. └─xgboost::xgb.plot.multi.trees(model = bst.Tree.unnamed, features_keep = 3) at test_helpers.R:471:3
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 1862 ]
  Error:
  ! Test failures.
  Execution halted