scat                 package:gtools                 R Documentation

_D_i_s_p_l_a_y _d_e_b_u_g_g_i_n_g _t_e_x_t

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

     If 'getOption('DEBUG')==TRUE', write text to STDOUT and flush so
     that the text is immediatly displayed. Otherwise, do nothing.

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

     scat(...)

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

     ...: Arguments passed to 'cat'

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

     NULL (invisibly)

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

     Gregory R. Warnes gregory.r.warnes@pfizer.com

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

     'cat'

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

     options(DEBUG=NULL) # makee sure DEBUG isn't set
     scat("Not displayed")

     options(DEBUG=TRUE)
     scat("This will be displayed immediately (even in R BATCH output \n")
     scat("files), provided options()$DEBUG is TRUE.")

