withWE {rmelting} | R Documentation |
Not exported. Strictly internal
withWE(expr)
expr |
The expression to be evaluated. |
In cas of Warning(s)Returns the value along with the warning message(s).
In cas of ErrorReturns NA as the value along with the error message.
foo <- function(){ warning("oops") 1} foo <- function(){ warning("oops") warning("again oops") 1} foo <- function(){ warning("oops") log("a")}