powered by
captures an expression, returning TRUE if there was an error and FALSE otherwise
capture(expr, silent = FALSE)
an expression to be evaluated
if TRUE, suppress error messages from printing (default: FALSE)
FALSE if the expression successfully ran and TRUE otherwise
# NOT RUN { capture({log(1)}) capture({log(-1)}) # }
Run the code above in your browser using DataLab