Running examples in ‘bagged.outliertrees-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: predict.bagged.outliertrees
> ### Title: Predict method for Bagged OutlierTrees
> ### Aliases: predict.bagged.outliertrees
> 
> ### ** Examples
> 
> library(bagged.outliertrees)
> 
> ### example dataset with interesting outliers
> data(hypothyroid)
> 
> ### fit a Bagged OutlierTrees model
> model <- bagged.outliertrees(hypothyroid,
+   ntrees = 10,
+   subsampling_rate = 0.5,
+   z_outlier = 6,
+   nthreads = 1
+ )

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |=======                                                               |  10%
  |                                                                            
  |==============                                                        |  20%
  |                                                                            
  |=====================                                                 |  30%
  |                                                                            
  |============================                                          |  40%
  |                                                                            
  |===================================                                   |  50%
  |                                                                            
  |==========================================                            |  60%
  |                                                                            
  |=================================================                     |  70%
  |                                                                            
  |========================================================              |  80%
  |                                                                            
  |===============================================================       |  90%
  |                                                                            
  |======================================================================| 100%> 
> ### use the fitted model to find outliers in the training dataset
> outliers <- predict(model,
+   newdata = hypothyroid,
+   min_outlier_score = 0.5,
+   nthreads = 1
+ )
Error in serverSocket(port = port) : 
  creation of server socket failed: port 11149 cannot be opened
Calls: predict -> predict.bagged.outliertrees
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
                     user system elapsed
bagged.outliertrees 0.571  0.075   8.695