View source: R/ErrorHandling.R
bptry | R Documentation |
This function is meant to be used as a wrapper around
bplapply()
and friends, returning the evaluated expression
rather than signalling an error.
bptry(expr, ..., bplist_error, bperror)
expr |
An R expression; see |
bplist_error |
A ‘handler’ function of a single argument, used to catch
Setting Setting |
bperror |
A ‘handler’ function of a single argument, use to catch
|
... |
Additional named handlers passed to |
The partially evaluated list of results.
Martin Morgan martin.morgan@roswellpark.org
bpok
, tryCatch
, bplapply
.
param = registered()[[1]]
param
X = list(1, "2", 3)
bptry(bplapply(X, sqrt)) # bplist_error handler
result <- bptry(bplapply(X, sqrt), bplist_error=identity) # bperror handler
result
bpresult(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.