browser                 package:base                 R Documentation

_E_n_v_i_r_o_n_m_e_n_t _B_r_o_w_s_e_r

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

     Interrupt the execution of an expression and allow the inspection
     of the environment where 'browser' was called from.

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

     browser()

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

     A call to 'browser' can be included in the body of a function.
     When reached, this causes a pause in the execution of the current
     expression and allows access to the R interpreter.

     At the browser prompt the user can enter commands or R
     expressions. The commands are


     '_c' (or just return) exit the browser and continue execution at
          the next statement.

     '_c_o_n_t' synonym for 'c'.

     '_n' enter the step-through debugger. This changes the meaning of
          'c': see the documentation for 'debug'.

     '_w_h_e_r_e' print a stack trace of all active function calls.

     '_Q' exit the browser and the current evaluation and return to the
          top-level prompt.

     (Leading and trailing whitespace is ignored, except for return).

     Anything else entered at the browser prompt is interpreted as an R
     expression to be evaluated in the calling environment: in
     particular typing an object name will cause the object to be
     printed, and 'ls()' lists the objects in the calling frame.  (If
     you want to look at an object with a name such as 'n', print it
     explicitly.)

     The number of lines printed for the deparsed call can be limited
     by setting 'options(deparse.max.lines)'.

_R_e_f_e_r_e_n_c_e_s:

     Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) _The New S
     Language_. Wadsworth & Brooks/Cole.

     Chambers, J. M. (1998) _Programming with Data. A Guide to the S
     Language_. Springer.

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

     'debug', and 'traceback' for the stack on error.

