Rev 15168 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{restart}\alias{restart}\title{Restart an Expression}\usage{restart(on = TRUE)}\arguments{\item{on}{if true a jump point is set; if false the jump point is removed.}}\description{\code{restart} performs a type of non-local return.}\details{When \code{restart} is called with \code{on = TRUE} the evaluatormarks that function as a return point. Any errors or signals(such as control-C on Unix) cause control to return to the start ofthe function containing the call to \code{restart}. The most recentlyestablished function is always entered first.}\note{The direct use of \code{restart} is likely to result in an infinite loop.Use \code{\link{try}} unless you are \bold{sure} you know whatyou are doing.}\seealso{\code{\link{options}} for setting error handlers and suppressing theprinting of error messages.}\keyword{programming}