Skip to contents

Parallelization error fallback

Usage

par_fallback(err = NULL, fun = NULL, inputid = NULL)

Arguments

err

Error status or message.

fun

function.

inputid

character(1). ID of the computational region. For example, par_make_gridset output should have "CGRIDID", which will be included in the outcome data.frame. If the function does not have an argument containing "id", the output will have a column named "chopin_domain_id".

Value

data.frame with domain id and error message.

Note

This function assumes that the fun has an argument containing "id".

Author

Insang Song

Examples

err <- simpleError("No input.")
par_fallback(err, extract_at, inputid = 1)
#>   chopin_domain_id error_message
#> 1                1     No input.