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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: estimateRuntimes
> ### Title: Estimate Remaining Runtimes
> ### Aliases: estimateRuntimes print.RuntimeEstimate
> 
> ### ** Examples
> 
> # Create a simple toy registry
> set.seed(1)
> tmp = makeExperimentRegistry(file.dir = NA, make.default = FALSE, seed = 1)
No configuration file found
Created registry in '/tmp/RtmpI9UPDQ/registry100c7c48a0f9' using cluster functions 'Interactive'
> addProblem(name = "iris", data = iris, fun = function(data, ...) nrow(data), reg = tmp)
Adding problem 'iris'
> addAlgorithm(name = "nrow", function(instance, ...) nrow(instance), reg = tmp)
Adding algorithm 'nrow'
> addAlgorithm(name = "ncol", function(instance, ...) ncol(instance), reg = tmp)
Adding algorithm 'ncol'
> addExperiments(algo.designs = list(nrow = CJ(x = 1:50, y = letters[1:5])), reg = tmp)
Adding 250 experiments ('iris'[1] x 'nrow'[250] x repls[1]) ...
> addExperiments(algo.designs = list(ncol = CJ(x = 1:50, y = letters[1:5])), reg = tmp)
Adding 250 experiments ('iris'[1] x 'ncol'[250] x repls[1]) ...
> 
> # We use the job parameters to predict runtimes
> tab = unwrap(getJobPars(reg = tmp))
> 
> # First we need to submit some jobs so that the forest can train on some data.
> # Thus, we just sample some jobs from the registry while grouping by factor variables.
> ids = tab[, .SD[sample(nrow(.SD), 5)], by = c("problem", "algorithm", "y")]
> setkeyv(ids, "job.id")
> submitJobs(ids, reg = tmp)
Submitting 50 jobs in 50 chunks using cluster functions 'Interactive' ...
> waitForJobs(reg = tmp)
[1] TRUE
> 
> # We "simulate" some more realistic runtimes here to demonstrate the functionality:
> # - Algorithm "ncol" is 5 times more expensive than "nrow"
> # - x has no effect on the runtime
> # - If y is "a" or "b", the runtimes are really high
> runtime = function(algorithm, x, y) {
+   ifelse(algorithm == "nrow", 100L, 500L) + 1000L * (y %in% letters[1:2])
+ }
> tmp$status[ids, done := done + tab[ids, runtime(algorithm, x, y)]]
> rjoin(sjoin(tab, ids), getJobStatus(ids, reg = tmp)[, c("job.id", "time.running")])
    job.id problem algorithm  x y   time.running
 1:      4    iris      nrow  1 d  100.0017 secs
 2:     16    iris      nrow  4 a 1100.0015 secs
 3:     34    iris      nrow  7 d  100.0014 secs
 4:     41    iris      nrow  9 a 1100.0015 secs
 5:     46    iris      nrow 10 a 1100.0014 secs
 6:     48    iris      nrow 10 c  100.0014 secs
 7:     69    iris      nrow 14 d  100.0015 secs
 8:     85    iris      nrow 17 e  100.0015 secs
 9:     89    iris      nrow 18 d  100.0014 secs
10:     94    iris      nrow 19 d  100.0015 secs
11:     97    iris      nrow 20 b 1100.0014 secs
12:     98    iris      nrow 20 c  100.0014 secs
13:    115    iris      nrow 23 e  100.0014 secs
14:    117    iris      nrow 24 b 1100.0016 secs
15:    120    iris      nrow 24 e  100.0013 secs
16:    145    iris      nrow 29 e  100.0015 secs
17:    148    iris      nrow 30 c  100.0014 secs
18:    156    iris      nrow 32 a 1100.0014 secs
19:    167    iris      nrow 34 b 1100.0014 secs
20:    187    iris      nrow 38 b 1100.0015 secs
21:    193    iris      nrow 39 c  100.0015 secs
22:    220    iris      nrow 44 e  100.0015 secs
23:    223    iris      nrow 45 c  100.0014 secs
24:    227    iris      nrow 46 b 1100.0014 secs
25:    246    iris      nrow 50 a 1100.0016 secs
26:    258    iris      ncol  2 c  500.0015 secs
27:    270    iris      ncol  4 e  500.0014 secs
28:    271    iris      ncol  5 a 1500.0015 secs
29:    275    iris      ncol  5 e  500.0015 secs
30:    296    iris      ncol 10 a 1500.0016 secs
31:    315    iris      ncol 13 e  500.0015 secs
32:    325    iris      ncol 15 e  500.0014 secs
33:    352    iris      ncol 21 b 1500.0015 secs
34:    354    iris      ncol 21 d  500.0013 secs
35:    358    iris      ncol 22 c  500.0015 secs
36:    364    iris      ncol 23 d  500.0015 secs
37:    370    iris      ncol 24 e  500.0015 secs
38:    378    iris      ncol 26 c  500.0014 secs
39:    388    iris      ncol 28 c  500.0015 secs
40:    402    iris      ncol 31 b 1500.0014 secs
41:    411    iris      ncol 33 a 1500.0016 secs
42:    419    iris      ncol 34 d  500.0014 secs
43:    432    iris      ncol 37 b 1500.0016 secs
44:    434    iris      ncol 37 d  500.0014 secs
45:    436    iris      ncol 38 a 1500.0016 secs
46:    438    iris      ncol 38 c  500.0014 secs
47:    447    iris      ncol 40 b 1500.0015 secs
48:    451    iris      ncol 41 a 1500.0019 secs
49:    454    iris      ncol 41 d  500.0014 secs
50:    497    iris      ncol 50 b 1500.0014 secs
    job.id problem algorithm  x y   time.running
> 
> # Estimate runtimes:
> est = estimateRuntimes(tab, reg = tmp)
Error in estimateRuntimes(tab, reg = tmp) : 
  Please install package 'ranger' for runtime estimation
Execution halted