
Last chance! 50% off unlimited learning
Sale ends in
failwith(default, f, quiet=FALSE)
try_default
f <- function(x) if (x == 1) stop("Error!") else 1
f(1)
f(2)
safef <- failwith(NULL, f)
safef(1)
safef(2)
Run the code above in your browser using DataLab