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)
20 Jul 23:57  Evaluating modeling performance...
20 Jul 23:57    Repeat 1, fold 1
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
Loading required namespace: MASS
                Result size is 81.07 KiB.
                Estimated completion time is 23:57.
20 Jul 23:57    Repeat 1, fold 2
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 1, fold 3
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 1, fold 4
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 2, fold 1
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 2, fold 2
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 2, fold 3
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 2, fold 4
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 3, fold 1
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 3, fold 2
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 3, fold 3
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 3, fold 4
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 4, fold 1
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 4, fold 2
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 4, fold 3
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 4, fold 4
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      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)
20 Jul 23:57  Evaluating modeling performance...
20 Jul 23:57    Repeat 1, fold 1
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting Linear
20 Jul 23:57      Fitting Quadratic
                Result size is 162.68 KiB.
                Estimated completion time is 23:57.
20 Jul 23:57    Repeat 1, fold 2
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting Linear
20 Jul 23:57      Fitting Quadratic
20 Jul 23:57    Repeat 1, fold 3
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting Linear
20 Jul 23:57      Fitting Quadratic
20 Jul 23:57    Repeat 1, fold 4
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting Linear
20 Jul 23:57      Fitting Quadratic
20 Jul 23:57    Repeat 2, fold 1
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting Linear
20 Jul 23:57      Fitting Quadratic
20 Jul 23:57    Repeat 2, fold 2
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting Linear
20 Jul 23:57      Fitting Quadratic
20 Jul 23:57    Repeat 2, fold 3
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting Linear
20 Jul 23:57      Fitting Quadratic
20 Jul 23:57    Repeat 2, fold 4
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting Linear
20 Jul 23:57      Fitting Quadratic
20 Jul 23:57    Repeat 3, fold 1
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting Linear
20 Jul 23:57      Fitting Quadratic
20 Jul 23:57    Repeat 3, fold 2
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting Linear
20 Jul 23:57      Fitting Quadratic
20 Jul 23:57    Repeat 3, fold 3
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting Linear
20 Jul 23:57      Fitting Quadratic
20 Jul 23:57    Repeat 3, fold 4
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting Linear
20 Jul 23:57      Fitting Quadratic
20 Jul 23:57    Repeat 4, fold 1
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting Linear
20 Jul 23:57      Fitting Quadratic
20 Jul 23:57    Repeat 4, fold 2
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting Linear
20 Jul 23:57      Fitting Quadratic
20 Jul 23:57    Repeat 4, fold 3
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting Linear
20 Jul 23:57      Fitting Quadratic
20 Jul 23:57    Repeat 4, fold 4
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting Linear
20 Jul 23:57      Fitting Quadratic
> 
> # Multicore parallelization (on a single computer)
> result <- evaluate("lda", x, y, resample=cv, .cores=2)
20 Jul 23:57  Evaluating modeling performance...
Warning in notify_once(id = "windows_parallelization", "Parallelization is not yet implemented for windows systems. Please set it up manually as described in `?evaluate`. Running sequentially.",  :
  Parallelization is not yet implemented for windows systems. Please set it up manually as described in `?evaluate`. Running sequentially.
20 Jul 23:57    Repeat 1, fold 1
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
                Result size is 81.07 KiB.
                Estimated completion time is 23:57.
20 Jul 23:57    Repeat 1, fold 2
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 1, fold 3
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 1, fold 4
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 2, fold 1
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 2, fold 2
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 2, fold 3
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 2, fold 4
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 3, fold 1
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 3, fold 2
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 3, fold 3
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 3, fold 4
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 4, fold 1
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 4, fold 2
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 4, fold 3
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
20 Jul 23:57    Repeat 4, fold 4
20 Jul 23:57      Extracting fitting and testing datasets.
20 Jul 23:57      Fitting lda
> 
> # 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)
> clusterEvalQ(cl, library(emil))
[[1]]
[1] "emil"      "stats"     "graphics"  "grDevices" "utils"     "datasets" 
[7] "methods"   "base"     

[[2]]
[1] "emil"      "stats"     "graphics"  "grDevices" "utils"     "datasets" 
[7] "methods"   "base"     

> clusterExport(cl, c("x", "y"))
> result <- parLapply(cl, cv, function(fold)
+     evaluate("lda", x, y, resample=fold))
> 
> 
> 
> 
> cleanEx()

detaching 'package:parallel'

Error: connections left open:
	<-CRANwin.fb05.statistik.uni-dortmund.de:11269 (sockconn)
	<-CRANwin.fb05.statistik.uni-dortmund.de:11269 (sockconn)
Execution halted