Rev 15357 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{recover}\alias{recover}%- Also NEED an `\alias' for EACH other topic documented here.\title{Browsing on an Error }\description{This function allows the user to browse directly on any of thecurrently active function calls, and is suitable as an error option.}\usage{recover()options(error=quote(recover()))}\details{When called, \code{recover} prints the list of current calls, andprompts the user to select one of them. The standard R\code{\link{browser}} is then invoked from the correspondingenvironment; the user can type ordinary S language expressions to beevaluated in that environment.When finished browsing in this call, type \code{c} to return to\code{recover} from the browser. Type another frame number to browsesome more, or type \code{0} to exit \code{recover}.\emph{WARNING}: Do not use the special \code{Q} command to go directlyfrom the browser to the prompt level of the evaluator. This currentlyinteracts with \code{recover} to mess up any subsequent error recoveryin that session. If you do have to use \code{Q}, quit from thesession immediately afterwards.}\value{Nothing useful is returned. However, you \emph{can} invoke\code{recover} directly, rather than through the error option shownthe usage section. In this case, execution continues after you type\code{0} to exit \code{recover}.}\author{John Chambers }\section{Compatibility Note}{The R \code{recover} function can be used in the same way as theS-Plus function of the same name; therefore, the error option shown isa compatible way to specify the error action. However, the actualfunctions are essentially unrelated and interact quite differentlywith the user.}\seealso{ See \code{\link{dump.frames}} and \code{\link{debugger}} forthe more traditional approach to error recovery.}\keyword{programming}