\Header{toString}{toString Converts its Argument to a Character String}
\methalias{toString.default}{toString}
\keyword{utilities}{toString}
\begin{Description}\relax
This is a helper function for \code{\Link{format}}. It converts its argument
to a string. If the argument is a vector then its elements are
concatenated with a \code{,} as a separator. 
Most methods should honor the width argument. 
The minimum value for \code{width} is six.
\end{Description}
\begin{Usage}
\begin{verbatim}
toString(x, ...)

## Default S3 method:
toString(x, width, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] The object to be converted.
\item[\code{width}] The returned value is at most the first \code{width} characters.
\item[\code{...}] Optional arguments for methods.
\end{ldescription}
\end{Arguments}
\begin{Value}
A character vector of length 1 is returned.
\end{Value}
\begin{Author}\relax
Robert Gentleman
\end{Author}
\begin{SeeAlso}\relax
\code{\Link{format}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
x <- c("a", "b", "aaaaaaaaaaa")
toString(x)
toString(x, width=8)
\end{ExampleCode}
\end{Examples}

