Filter out the tasks with errors.
Examples
# Errors can be intercepted. Consider a function
# that can generate some error. The run will not plot and
# the computation will run anyway.
results = run(
FUN = function(x) {
if(runif(1) > .5) stop("Some error")
x
},
PARAMS = lapply(1:5, list),
silent = TRUE
)
#> [easypar] 2/5 computations returned errors and will be removed.
# Getter that can filter them out
filterErrors(results)
#> $`1`
#> [1] 1
#>
#> $`2`
#> [1] 2
#>
#> $`4`
#> [1] 4
#>