filterErrors: Filter out the tasks with errors.

View source: R/filterErrors.R

filterErrorsR Documentation

Filter out the tasks with errors.

Description

Filter out the tasks with errors.

Usage

filterErrors(R)

Arguments

R

The list of outputs from run

Value

The list of tasks without 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
)

# Getter that can filter them out

filterErrors(results)

caravagnalab/easypar documentation built on June 10, 2022, 6:05 a.m.