Learn R Programming

debug (version 1.2.2)

last.try.error: Get last try-error

Description

Suppose you are debugging, and have stepped-into a try statement, and the debugger has stopped at an error. You might actually want to return that error as an object of class try-error, just like try would if you weren't debugging. To do that, type return( last.try.error()) at the debug prompt.

Usage

last.try.error() # normally: type return( last.try.error()) at the debug prompt

Arguments

Value

  • An object of class try-error, just like try itself returns in case of error.