Learn R Programming

AnalysisPageServer (version 1.6.2)

tryKeepTraceback: tryKeepTraceback

Description

Wrapper around try-catch

Usage

tryKeepTraceback(expr)

Arguments

expr
Expression to evaluate

Value

Result of expression or error if thrown

Examples

Run this code
x <- tryKeepTraceback(stop("no way"))
if(is(x, "try-error"))  cat(getTraceback(x))

Run the code above in your browser using DataLab