restart                 package:base                 R Documentation

_R_e_s_t_a_r_t _a_n _E_x_p_r_e_s_s_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     `restart' performs a type of non-local return.

_U_s_a_g_e:

     restart(on = TRUE)

_A_r_g_u_m_e_n_t_s:

      on: if true a jump point is set; if false the jump point is
          removed.

_D_e_t_a_i_l_s:

     When `restart' is called with `on = TRUE' the evaluator marks that
     function as a return point.  Any errors or signals (such as
     control-C on Unix) cause control to return to the start of the
     function containing the call to `restart'. The most recently
     established function is always entered first.

_N_o_t_e:

     The direct use of `restart' is likely to result in an infinite
     loop. Use `try' unless you are sure you know what you are doing.

_S_e_e _A_l_s_o:

     `options' for setting error handlers and suppressing the printing
     of error messages.

