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.

