R avoiding "restarting interrupted promise evaluation" warning R avoiding "restarting interrupted promise evaluation" warning r r

R avoiding "restarting interrupted promise evaluation" warning


You can also try this without silent=TRUE if you want each error message to show. In neither case will you get the message about promises:

foo <- function() stop("Foo error")bar <- function(x) {    try(eval.parent(substitute(x)), silent = TRUE)    x}bar(foo())