recover               package:methods               R Documentation

_B_r_o_w_s_i_n_g _o_n _a_n _E_r_r_o_r

_D_e_s_c_r_i_p_t_i_o_n:

     This function allows the user to browse directly on any of the
     currently active function calls, and is suitable as an error
     option. The expression `options(error=recover)' will make this the
     error option.

_U_s_a_g_e:

     recover()

_D_e_t_a_i_l_s:

     When called, `recover' prints the list of current calls, and
     prompts the user to select one of them.  The standard R `browser'
     is then invoked from the corresponding environment; the user can
     type ordinary S language expressions to be evaluated in that
     environment.

     When finished browsing in this call, type `c' to return to
     `recover' from the browser.  Type another frame number to browse
     some more, or type `0' to exit `recover'.

     WARNING: Do not use the special `Q' command to go directly from
     the browser to the prompt level of the evaluator.  This currently
     interacts with `recover' to effectively turn off the error option
     for the next error (on subsequent errors, `recover' will be called
     normally)

_V_a_l_u_e:

     Nothing useful is returned.  However, you can invoke `recover'
     directly from a function, rather than through the error option
     shown the usage section.  In this case, execution continues after
     you type `0' to exit `recover'.

_C_o_m_p_a_t_i_b_i_l_i_t_y _N_o_t_e:

     The R `recover' function can be used in the same way as the S-Plus
     function of the same name; therefore, the error option shown is a
     compatible way to specify the error action.  However, the actual
     functions are essentially unrelated and interact quite differently
     with the user.

_R_e_f_e_r_e_n_c_e_s:

     Programming with Data, (John M. Chambers, Springer, 1998).  See
     the compatibility note above, however.

_S_e_e _A_l_s_o:

     See `dump.frames' and `debugger' for the more traditional approach
     to error recovery.

