Running examples in 'CAISEr-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: calc_nreps
> ### Title: Determine sample sizes for a set of algorithms on a single
> ###   problem instance
> ### Aliases: calc_nreps
> 
> ### ** Examples
> 
> # Example using dummy algorithms and instances. See ?dummyalgo for details.
> # We generate dummy algorithms with true means 15, 10, 30, 15, 20; and true
> # standard deviations 2, 4, 6, 8, 10.
> algorithms <- mapply(FUN = function(i, m, s){
+                           list(FUN   = "dummyalgo",
+                                alias = paste0("algo", i),
+                                distribution.fun  = "rnorm",
+                                distribution.pars = list(mean = m, sd = s))},
+                      i = c(alg1 = 1, alg2 = 2, alg3 = 3, alg4 = 4, alg5 = 5),
+                      m = c(15, 10, 30, 15, 20),
+                      s = c(2, 4, 6, 8, 10),
+                      SIMPLIFY = FALSE)
> 
> # Make a dummy instance with a centered (zero-mean) exponential distribution:
> instance = list(FUN = "dummyinstance", distr = "rexp", rate = 5, bias = -1/5)
> 
> # Explicitate all other parameters (just this one time:
> # most have reasonable default values)
> myreps <- calc_nreps(instance   = instance,
+                       algorithms = algorithms,
+                       se.max     = 0.05,          # desired (max) standard error
+                       dif        = "perc",        # type of difference
+                       comparisons = "all.vs.all", # differences to consider
+                       method     = "param",       # method ("param", "boot")
+                       nstart     = 15,            # initial number of samples
+                       nmax       = 1000,          # maximum allowed sample size
+                       seed       = 1234,          # seed for PRNG
+                       boot.R     = 499,           # number of bootstrap resamples (unused)
+                       ncpus      = 1,             # number of cores to use
+                       force.balanced = FALSE,     # force balanced sampling?
+                       load.folder   = NA,         # file to load results from
+                       save.folder = NA)         # folder to save results

Sampling algorithms on instance dummyinstance : .....................................> summary(myreps)
#====================================
Instance: dummyinstance
Number of algorithms: 5
algo1: 15 runs
algo2: 61 runs
algo3: 138 runs
algo4: 165 runs
algo5: 237 runs
 --------------------
Total runs: 616
Comparisons: all.vs.all
#====================================

   Alg1 Alg2  N1  N2     Phi     SE      r  ropt
1     1    2  15  61  0.2720 0.0411 0.2460 0.435
2     1    3  15 138 -0.9200 0.0431 0.1090 0.288
3     1    4  15 165 -0.0535 0.0418 0.0909 0.254
4     1    5  15 237 -0.3080 0.0470 0.0633 0.177
5     2    3  61 138 -1.1900 0.0468 0.4420 0.662
6     2    4  61 165 -0.3250 0.0446 0.3700 0.585
7     2    5  61 237 -0.5800 0.0498 0.2570 0.408
8     3    4 138 165  0.8660 0.0462 0.8360 0.883
9     3    5 138 237  0.6120 0.0499 0.5820 0.617
10    4    5 165 237 -0.2540 0.0500 0.6960 0.698

#====================================> plot(myreps)
Error: Unknown colour name: 2
Execution halted