lapply_tryCatch.Rd
Used to run function iteratively over list, while using tryCatch to
catch warnings and errors to finally present a summary of issues rather
than error on each and every one. Used in iterativeLRT
and
iterativeModel
.
lapply_tryCatch(X, FUN, err_res, ...)
a vector (atomic or list) or an expression
object. Other objects (including classed objects) will be coerced
by base::as.list
.
the function to be applied to each element of X
:
see ‘Details’. In the case of functions like
+
, %*%
, the function name must be backquoted or quoted.
Function creating a result that should be output in case of error.
optional arguments to FUN
.
List of elements as returned by FUN
.