strbreak               package:Biobase               R Documentation

_B_r_e_a_k _C_h_a_r_a_c_t_e_r _S_t_r_i_n_g_s _t_o _F_i_t _W_i_d_t_h

_D_e_s_c_r_i_p_t_i_o_n:

     Inserts line breaks ('collapse') into input character strings. The
     main intention of this function is to prepare long strings for
     printing, so the output is not wider than 'width'.

_U_s_a_g_e:

       strbreak(x, width=getOption("width"), exdent=2, collapse="\n")

_A_r_g_u_m_e_n_t_s:

       x: a character vector

   width: a positive integer giving the width of the output.

  exdent: a positive integer specifying the indentation of subsequent
          lines after the first line.

collapse: a character.  This is inserted to break lines.

_A_u_t_h_o_r(_s):

     Wolfgang Huber <URL: http://www.ebi.ac.uk/huber>

_S_e_e _A_l_s_o:

     'strwrap', 'substring'

_E_x_a_m_p_l_e_s:

     longString = paste(rep(LETTERS, 10), collapse="", sep="")
     cat(strbreak(longString))

