waitReturn              package:cwhtool              R Documentation

_W_a_i_t _f_o_r <_R_e_t_u_r_n>

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

     Wait for the user to type <Return>, depending on argument.

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

       waitReturn(ask=TRUE)

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

     ask: 'TRUE' will generate the interruption, 'FALSE' will not.

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

     The interruption will only be generated for the interactive use of
     R and if the call is not 'sink'ed (where it would hang the
     process).

_V_a_l_u_e:

     None.

_A_u_t_h_o_r(_s):

     Christian W. Hoffmann, christian.hoffmann@wsl.ch, <URL:
     http://www.wsl.ch/staff/christian.hoffmann>

_E_x_a_m_p_l_e_s:

       for (ii in 1:5) {
         cat(ii,"\n")
         waitReturn(ii %% 2 == 1) 
       } 

