Running ‘testthat.R’ [89s/135s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(segregation)
  > 
  > test_check("segregation")
  [Bootstrap 5/100] 
                      
  [Bootstrap 10/100] 
                       
  [Bootstrap 15/100] 
                       
  [Bootstrap 20/100] 
                       
  [Bootstrap 25/100] 
                       
  [Bootstrap 30/100] 
                       
  [Bootstrap 35/100] 
                       
  [Bootstrap 40/100] 
                       
  [Bootstrap 45/100] 
                       
  [Bootstrap 50/100] 
                       
  [Bootstrap 55/100] 
                       
  [Bootstrap 60/100] 
                       
  [Bootstrap 65/100] 
                       
  [Bootstrap 70/100] 
                       
  [Bootstrap 75/100] 
                       
  [Bootstrap 80/100] 
                       
  [Bootstrap 85/100] 
                       
  [Bootstrap 90/100] 
                       
  [Bootstrap 95/100] 
                       
  [Bootstrap 100/100] 
                        
  [IPF 1/1] 
              
  [IPF 1/1] 
              
  [IPF 1/1] 
              
  [IPF 1/1] 
              
  [IPF 1/1] ###
                 
  [IPF 1/1] ##
                
  [IPF 1/1] ###
                 
  [IPF 1/1] #
               
  [IPF 1/1] #
               
  [IPF 1/1] #
               
  [IPF 1/6] #
               
  [IPF 2/6] #
               
  [IPF 3/6] #
               
  [IPF 4/6] 
              
  [IPF 5/6] 
              
  [IPF 6/6] 
              
  [IPF 1/6] #
               
  [IPF 2/6] #
               
  [IPF 3/6] 
              
  [IPF 4/6] 
              
  [IPF 5/6] #
               
  [IPF 6/6] #
               
  [IPF 1/6] 
              
  [IPF 2/6] 
              
  [IPF 3/6] 
              
  [IPF 4/6] #
               
  [IPF 5/6] #
               
  [IPF 6/6] #
               
  [IPF 1/6] 
              
  [IPF 2/6] #
               
  [IPF 3/6] 
              
  [IPF 4/6] #
               
  [IPF 5/6] #
               
  [IPF 6/6] #
               
  [IPF 1/1] ##
                
  [IPF 1/1] #
               
  [IPF 1/6] #
               
  [IPF 2/6] 
              
  [IPF 3/6] #
               
  [IPF 4/6] 
              
  [IPF 5/6] #
               
  [IPF 6/6] 
              
  [Bootstrap 1/5 IPF 6/6] 
                            
  [Bootstrap 1/5 IPF 1/6] 
                            
  [Bootstrap 1/5 IPF 2/6] #
                             
  [Bootstrap 1/5 IPF 3/6] #
                             
  [Bootstrap 1/5 IPF 4/6] 
                            
  [Bootstrap 1/5 IPF 5/6] #
                             
  [Bootstrap 1/5 IPF 6/6] #
                             
  [Bootstrap 2/5 IPF 6/6] 
                            
  [Bootstrap 2/5 IPF 1/6] #
                             
  [Bootstrap 2/5 IPF 2/6] #
                             
  [Bootstrap 2/5 IPF 3/6] #
                             
  [Bootstrap 2/5 IPF 4/6] #
                             
  [Bootstrap 2/5 IPF 5/6] #
                             
  [Bootstrap 2/5 IPF 6/6] #
                             
  [Bootstrap 3/5 IPF 6/6] 
                            
  [Bootstrap 3/5 IPF 1/6] #
                             
  [Bootstrap 3/5 IPF 2/6] #
                             
  [Bootstrap 3/5 IPF 3/6] #
                             
  [Bootstrap 3/5 IPF 4/6] #
                             
  [Bootstrap 3/5 IPF 5/6] 
                            
  [Bootstrap 3/5 IPF 6/6] 
                            
  [Bootstrap 4/5 IPF 6/6] 
                            
  [Bootstrap 4/5 IPF 1/6] #
                             
  [Bootstrap 4/5 IPF 2/6] #
                             
  [Bootstrap 4/5 IPF 3/6] #
                             
  [Bootstrap 4/5 IPF 4/6] #
                             
  [Bootstrap 4/5 IPF 5/6] #
                             
  [Bootstrap 4/5 IPF 6/6] #
                             
  [Bootstrap 5/5 IPF 6/6] 
                            
  [Bootstrap 5/5 IPF 1/6] 
                            
  [Bootstrap 5/5 IPF 2/6] #
                             
  [Bootstrap 5/5 IPF 3/6] #
                             
  [Bootstrap 5/5 IPF 4/6] #
                             
  [Bootstrap 5/5 IPF 5/6] #
                             
  [Bootstrap 5/5 IPF 6/6] #
                             
  [IPF 1/1] #
               
  [Bootstrap 1/5 IPF 1/1] 
                            
  [Bootstrap 1/5 IPF 1/1] #
                             
  [Bootstrap 2/5 IPF 1/1] 
                            
  [Bootstrap 2/5 IPF 1/1] 
                            
  [Bootstrap 3/5 IPF 1/1] 
                            
  [Bootstrap 3/5 IPF 1/1] #
                             
  [Bootstrap 4/5 IPF 1/1] 
                            
  [Bootstrap 4/5 IPF 1/1] #
                             
  [Bootstrap 5/5 IPF 1/1] 
                            
  [Bootstrap 5/5 IPF 1/1] #
                             
  [Bootstrap 1/5] 
                    
  [Bootstrap 2/5] 
                    
  [Bootstrap 3/5] 
                    
  [Bootstrap 4/5] 
                    
  [Bootstrap 5/5] 
                    
  [IPF 1/6] ###
                 
  [IPF 2/6] ###
                 
  [IPF 3/6] ###
                 
  [IPF 4/6] ###
                 
  [IPF 5/6] ###
                 
  [IPF 6/6] ###
                 
  [IPF 1/6] ###
                 
  [IPF 2/6] ##
                
  [IPF 3/6] ####
                  
  [IPF 4/6] ###
                 
  [IPF 5/6] ##
                
  [IPF 6/6] ###
                 
  [IPF 1/6] 
              
  [IPF 2/6] 
              
  [IPF 3/6] 
              
  [IPF 4/6] 
              
  [IPF 5/6] 
              
  [IPF 6/6] 
              
  [IPF 1/6] #
               
  [IPF 2/6] #
               
  [IPF 3/6] #
               
  [IPF 4/6] #
               
  [IPF 5/6] 
              
  [IPF 6/6] #
               
  [IPF 1/1] #
               
  [IPF 1/6] #############
                           
  [IPF 2/6] ##
                
  [IPF 3/6] #####
                   
  [IPF 4/6] ##
                
  [IPF 5/6] #
               
  [IPF 6/6] 
              
  [IPF 1/1] #############
                           
  [IPF 1/6] ##########
                        
  [IPF 2/6] ##
                
  [IPF 3/6] ######
                    
  [IPF 4/6] ##
                
  [IPF 5/6] ##
                
  [IPF 6/6] #
               
  [IPF 1/6] ##
                
  [IPF 2/6] ##
                
  [IPF 3/6] #
               
  [IPF 4/6] #
               
  [IPF 5/6] ##
                
  [IPF 6/6] ##
                
  [IPF 1/6] 
              
  [IPF 2/6] #
               
  [IPF 3/6] ##
                
  [IPF 4/6] 
              
  [IPF 5/6] ##
                
  [IPF 6/6] #
               
  [Bootstrap 5/100] 
                      
  [Bootstrap 10/100] 
                       
  [Bootstrap 15/100] 
                       
  [Bootstrap 20/100] 
                       
  [Bootstrap 25/100] 
                       
  [Bootstrap 30/100] 
                       
  [Bootstrap 35/100] 
                       
  [Bootstrap 40/100] 
                       
  [Bootstrap 45/100] 
                       
  [Bootstrap 50/100] 
                       
  [Bootstrap 55/100] 
                       
  [Bootstrap 60/100] 
                       
  [Bootstrap 65/100] 
                       
  [Bootstrap 70/100] 
                       
  [Bootstrap 75/100] 
                       
  [Bootstrap 80/100] 
                       
  [Bootstrap 85/100] 
                       
  [Bootstrap 90/100] 
                       
  [Bootstrap 95/100] 
                       
  [Bootstrap 100/100] 
                        
  [Bootstrap 5/100] 
                      
  [Bootstrap 10/100] 
                       
  [Bootstrap 15/100] 
                       
  [Bootstrap 20/100] 
                       
  [Bootstrap 25/100] 
                       
  [Bootstrap 30/100] 
                       
  [Bootstrap 35/100] 
                       
  [Bootstrap 40/100] 
                       
  [Bootstrap 45/100] 
                       
  [Bootstrap 50/100] 
                       
  [Bootstrap 55/100] 
                       
  [Bootstrap 60/100] 
                       
  [Bootstrap 65/100] 
                       
  [Bootstrap 70/100] 
                       
  [Bootstrap 75/100] 
                       
  [Bootstrap 80/100] 
                       
  [Bootstrap 85/100] 
                       
  [Bootstrap 90/100] 
                       
  [Bootstrap 95/100] 
                       
  [Bootstrap 100/100] 
                        
  [Bootstrap 5/100] 
                      
  [Bootstrap 10/100] 
                       
  [Bootstrap 15/100] 
                       
  [Bootstrap 20/100] 
                       
  [Bootstrap 25/100] 
                       
  [Bootstrap 30/100] 
                       
  [Bootstrap 35/100] 
                       
  [Bootstrap 40/100] 
                       
  [Bootstrap 45/100] 
                       
  [Bootstrap 50/100] 
                       
  [Bootstrap 55/100] 
                       
  [Bootstrap 60/100] 
                       
  [Bootstrap 65/100] 
                       
  [Bootstrap 70/100] 
                       
  [Bootstrap 75/100] 
                       
  [Bootstrap 80/100] 
                       
  [Bootstrap 85/100] 
                       
  [Bootstrap 90/100] 
                       
  [Bootstrap 95/100] 
                       
  [Bootstrap 100/100] 
                        
  [Bootstrap 5/100] 
                      
  [Bootstrap 10/100] 
                       
  [Bootstrap 15/100] 
                       
  [Bootstrap 20/100] 
                       
  [Bootstrap 25/100] 
                       
  [Bootstrap 30/100] 
                       
  [Bootstrap 35/100] 
                       
  [Bootstrap 40/100] 
                       
  [Bootstrap 45/100] 
                       
  [Bootstrap 50/100] 
                       
  [Bootstrap 55/100] 
                       
  [Bootstrap 60/100] 
                       
  [Bootstrap 65/100] 
                       
  [Bootstrap 70/100] 
                       
  [Bootstrap 75/100] 
                       
  [Bootstrap 80/100] 
                       
  [Bootstrap 85/100] 
                       
  [Bootstrap 90/100] 
                       
  [Bootstrap 95/100] 
                       
  [Bootstrap 100/100] 
                        
  [Bootstrap 5/100] 
                      
  [Bootstrap 10/100] 
                       
  [Bootstrap 15/100] 
                       
  [Bootstrap 20/100] 
                       
  [Bootstrap 25/100] 
                       
  [Bootstrap 30/100] 
                       
  [Bootstrap 35/100] 
                       
  [Bootstrap 40/100] 
                       
  [Bootstrap 45/100] 
                       
  [Bootstrap 50/100] 
                       
  [Bootstrap 55/100] 
                       
  [Bootstrap 60/100] 
                       
  [Bootstrap 65/100] 
                       
  [Bootstrap 70/100] 
                       
  [Bootstrap 75/100] 
                       
  [Bootstrap 80/100] 
                       
  [Bootstrap 85/100] 
                       
  [Bootstrap 90/100] 
                       
  [Bootstrap 95/100] 
                       
  [Bootstrap 100/100] 
                        
  [Bootstrap 5/100] 
                      
  [Bootstrap 10/100] 
                       
  [Bootstrap 15/100] 
                       
  [Bootstrap 20/100] 
                       
  [Bootstrap 25/100] 
                       
  [Bootstrap 30/100] 
                       
  [Bootstrap 35/100] 
                       
  [Bootstrap 40/100] 
                       
  [Bootstrap 45/100] 
                       
  [Bootstrap 50/100] 
                       
  [Bootstrap 55/100] 
                       
  [Bootstrap 60/100] 
                       
  [Bootstrap 65/100] 
                       
  [Bootstrap 70/100] 
                       
  [Bootstrap 75/100] 
                       
  [Bootstrap 80/100] 
                       
  [Bootstrap 85/100] 
                       
  [Bootstrap 90/100] 
                       
  [Bootstrap 95/100] 
                       
  [Bootstrap 100/100] 
                        
  [Bootstrap 5/10] 
                     
  [Bootstrap 10/10] 
                      
  [Bootstrap 5/100] 
                      
  [Bootstrap 10/100] 
                       
  [Bootstrap 15/100] 
                       
  [Bootstrap 20/100] 
                       
  [Bootstrap 25/100] 
                       
  [Bootstrap 30/100] 
                       
  [Bootstrap 35/100] 
                       
  [Bootstrap 40/100] 
                       
  [Bootstrap 45/100] 
                       
  [Bootstrap 50/100] 
                       
  [Bootstrap 55/100] 
                       
  [Bootstrap 60/100] 
                       
  [Bootstrap 65/100] 
                       
  [Bootstrap 70/100] 
                       
  [Bootstrap 75/100] 
                       
  [Bootstrap 80/100] 
                       
  [Bootstrap 85/100] 
                       
  [Bootstrap 90/100] 
                       
  [Bootstrap 95/100] 
                       
  [Bootstrap 100/100] 
                        
  [Bootstrap 5/10] 
                     
  [Bootstrap 10/10] 
                      
  [Bootstrap 5/10] 
                     
  [Bootstrap 10/10] 
                      
  [Bootstrap 5/10] 
                     
  [Bootstrap 10/10] 
                      
  [Bootstrap 5/10] 
                     
  [Bootstrap 10/10] 
                      
  [Bootstrap 5/10] 
                     
  [Bootstrap 10/10] 
                      
  [Bootstrap 5/10] 
                     
  [Bootstrap 10/10] 
                      
  [Bootstrap 5/10] 
                     
  [Bootstrap 10/10] 
                      
  [Bootstrap 5/100] 
                      
  [Bootstrap 10/100] 
                       
  [Bootstrap 15/100] 
                       
  [Bootstrap 20/100] 
                       
  [Bootstrap 25/100] 
                       
  [Bootstrap 30/100] 
                       
  [Bootstrap 35/100] 
                       
  [Bootstrap 40/100] 
                       
  [Bootstrap 45/100] 
                       
  [Bootstrap 50/100] 
                       
  [Bootstrap 55/100] 
                       
  [Bootstrap 60/100] 
                       
  [Bootstrap 65/100] 
                       
  [Bootstrap 70/100] 
                       
  [Bootstrap 75/100] 
                       
  [Bootstrap 80/100] 
                       
  [Bootstrap 85/100] 
                       
  [Bootstrap 90/100] 
                       
  [Bootstrap 95/100] 
                       
  [Bootstrap 100/100] 
                        
  [Bootstrap 5/10] 
                     
  [Bootstrap 10/10] 
                      
  [Bootstrap 5/10] 
                     
  [Bootstrap 10/10] 
                      
  [Bootstrap 5/10] 
                     
  [Bootstrap 10/10] 
                      
  [Bootstrap 5/10] 
                     
  [Bootstrap 10/10] 
                      
  [Bootstrap 5/10] 
                     
  [Bootstrap 10/10] 
                      
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test_mutual_difference.R:187:5): mutual_difference shapley_detailed ──
  Error: A non-empty vector of column names for `by` is required.
  Backtrace:
      █
   1. └─segregation::mutual_difference(...) test_mutual_difference.R:187:4
   2.   └─segregation:::fun(d1, d2, group, unit, base, ...)
   3.     └─segregation:::shapley_compute(..., detail = "structural")
   4.       └─base::Reduce(merge, list(ls_AAB, ls_AAA, ls_BBB, ls_BBA))
   5.         ├─base:::f(init, x[[i]])
   6.         └─data.table::merge.data.table(init, x[[i]])
  ── Error (test_mutual_difference.R:219:5): mutual_difference shapley_detailed with SE ──
  Error: A non-empty vector of column names for `by` is required.
  Backtrace:
      █
   1. └─segregation::mutual_difference(...) test_mutual_difference.R:219:4
   2.   └─segregation:::fun(d1, d2, group, unit, base, ...)
   3.     └─segregation:::shapley_compute(..., detail = "structural")
   4.       └─base::Reduce(merge, list(ls_AAB, ls_AAA, ls_BBB, ls_BBA))
   5.         ├─base:::f(init, x[[i]])
   6.         └─data.table::merge.data.table(init, x[[i]])
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 250 ]
  Error: Test failures
  Execution halted