Description Usage Arguments Value Author(s) References Examples
Factory is not my code. Factory generates a function which is appropriately wrapped by error handlers. The result produced is a list. This is a nice way to recover from a loop problems that may have occured during loop evaluation. Check the references for additional related functions. I have not included the other factory functions because they did not play well with the return item as an S4 object.
1 | factory(fun)
|
fun |
The function to be turned into a factory |
list[3]: item 1 is the result from the function and $warn and $err contain warning and error messages respectively.
Martin Morgan; Packaged by Russell S. Pierce
1 2 3 4 | f.log <- factory(log)
f.log("a")
f.as.numeric <- factory(as.numeric)
f.as.numeric(c("a","b",1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.