\HeaderA{strbreak}{Break Character Strings to Fit Width}{strbreak}
\keyword{character}{strbreak}
\begin{Description}\relax
Inserts line breaks (\code{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 \code{width}.
\end{Description}
\begin{Usage}
\begin{verbatim}
  strbreak(x, width=getOption("width"), exdent=2, collapse="\n")
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] a character vector
\item[\code{width}] a positive integer giving the width of the output.
\item[\code{exdent}] a positive integer specifying the indentation of
subsequent lines after the first line.
\item[\code{collapse}] a character.  This is inserted to break lines.
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Wolfgang Huber \url{http://www.ebi.ac.uk/huber}
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{strwrap}{strwrap}}, \code{\LinkA{substring}{substring}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
longString = paste(rep(LETTERS, 10), collapse="", sep="")
cat(strbreak(longString))
\end{ExampleCode}
\end{Examples}

