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

> ### Name: evaluate
> ### Title: Evaluate a modeling procedure
> ### Aliases: evaluate
> 
> ### ** Examples
> 
> x <- iris[-5]
> y <- iris$Species
> cv <- resample("crossvalidation", y, nfold = 4, nrepeat = 4)
> result <- evaluate("lda", x, y, resample=cv)
22 Jun 21:41  Evaluating modeling performance...
22 Jun 21:41    Repeat 1, fold 1
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting lda
Loading required namespace: MASS
                Result size is 27.57 KiB.
                Estimated completion time is 21:41.
22 Jun 21:41    Repeat 1, fold 2
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting lda
22 Jun 21:41    Repeat 1, fold 3
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting lda
22 Jun 21:41    Repeat 1, fold 4
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting lda
22 Jun 21:41    Repeat 2, fold 1
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting lda
22 Jun 21:41    Repeat 2, fold 2
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting lda
22 Jun 21:41    Repeat 2, fold 3
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting lda
22 Jun 21:41    Repeat 2, fold 4
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting lda
22 Jun 21:41    Repeat 3, fold 1
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting lda
22 Jun 21:41    Repeat 3, fold 2
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting lda
22 Jun 21:41    Repeat 3, fold 3
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting lda
22 Jun 21:41    Repeat 3, fold 4
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting lda
22 Jun 21:41    Repeat 4, fold 1
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting lda
22 Jun 21:41    Repeat 4, fold 2
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting lda
22 Jun 21:41    Repeat 4, fold 3
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting lda
22 Jun 21:41    Repeat 4, fold 4
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting lda
> 
> # Multiple procedures fitted and tested simultaneously. 
> # This is useful when the dataset is large and the splitting takes a long time.
> # If you name the elements of the list emil will also name the elements of the
> # results object in the same way.
> result <- evaluate(c(Linear = "lda", Quadratic = "qda"), x, y, resample=cv)
22 Jun 21:41  Evaluating modeling performance...
22 Jun 21:41    Repeat 1, fold 1
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting Linear
22 Jun 21:41      Fitting Quadratic
                Result size is 55.65 KiB.
                Estimated completion time is 21:41.
22 Jun 21:41    Repeat 1, fold 2
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting Linear
22 Jun 21:41      Fitting Quadratic
22 Jun 21:41    Repeat 1, fold 3
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting Linear
22 Jun 21:41      Fitting Quadratic
22 Jun 21:41    Repeat 1, fold 4
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting Linear
22 Jun 21:41      Fitting Quadratic
22 Jun 21:41    Repeat 2, fold 1
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting Linear
22 Jun 21:41      Fitting Quadratic
22 Jun 21:41    Repeat 2, fold 2
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting Linear
22 Jun 21:41      Fitting Quadratic
22 Jun 21:41    Repeat 2, fold 3
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting Linear
22 Jun 21:41      Fitting Quadratic
22 Jun 21:41    Repeat 2, fold 4
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting Linear
22 Jun 21:41      Fitting Quadratic
22 Jun 21:41    Repeat 3, fold 1
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting Linear
22 Jun 21:41      Fitting Quadratic
22 Jun 21:41    Repeat 3, fold 2
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting Linear
22 Jun 21:41      Fitting Quadratic
22 Jun 21:41    Repeat 3, fold 3
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting Linear
22 Jun 21:41      Fitting Quadratic
22 Jun 21:41    Repeat 3, fold 4
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting Linear
22 Jun 21:41      Fitting Quadratic
22 Jun 21:41    Repeat 4, fold 1
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting Linear
22 Jun 21:41      Fitting Quadratic
22 Jun 21:41    Repeat 4, fold 2
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting Linear
22 Jun 21:41      Fitting Quadratic
22 Jun 21:41    Repeat 4, fold 3
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting Linear
22 Jun 21:41      Fitting Quadratic
22 Jun 21:41    Repeat 4, fold 4
22 Jun 21:41      Extracting fitting and testing datasets.
22 Jun 21:41      Fitting Linear
22 Jun 21:41      Fitting Quadratic
> 
> # Multicore parallelization (on a single computer)
> result <- evaluate("lda", x, y, resample=cv, .cores=2)
22 Jun 21:41  Evaluating modeling performance...
Loading required namespace: parallel
22 Jun 21:41    Repeat 1, fold 1
22 Jun 21:41    Repeat 1, fold 2
22 Jun 21:41    Repeat 1, fold 3
22 Jun 21:41    Repeat 2, fold 1
22 Jun 21:41    Repeat 1, fold 4
22 Jun 21:41    Repeat 2, fold 2
22 Jun 21:41    Repeat 2, fold 3
22 Jun 21:41    Repeat 2, fold 4
22 Jun 21:41    Repeat 3, fold 1
22 Jun 21:41    Repeat 3, fold 2
22 Jun 21:41    Repeat 3, fold 3
22 Jun 21:41    Repeat 4, fold 1
22 Jun 21:41    Repeat 3, fold 4
22 Jun 21:41    Repeat 4, fold 3
22 Jun 21:41    Repeat 4, fold 2
22 Jun 21:41    Repeat 4, fold 4
> 
> # Parallelization using a cluster (not limited to a single computer)
> # PSOCK is supported on windows too!
> require(parallel)
Loading required package: parallel
> cl <- makePSOCKcluster(2)
Warning in socketConnection("localhost", port = port, server = TRUE, blocking = TRUE,  :
  port 11075 cannot be opened
Error in socketConnection("localhost", port = port, server = TRUE, blocking = TRUE,  : 
  cannot open the connection
Calls: makePSOCKcluster -> newPSOCKnode -> socketConnection
Execution halted