\Header{write.list}{Data Output}
\keyword{file}{write.list}
\begin{Description}\relax
Writes information from a list into a text file.
\end{Description}
\begin{Usage}
\begin{verbatim}
write.list(x, filename = "data", append = FALSE, closefile = TRUE, outfile)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] the list object to be written.
\item[\code{filename}] a character string representing the file name.
\item[\code{append}] logical; if true, the data \code{x} is appended to file
\code{filename}.
\item[\code{closefile}] logical indicating if the file connection should be closed.
\item[\code{outfile}] file name or connections.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This function may be called recursively if there exists list structure
within a list.
\end{Details}
\begin{Author}\relax
Jean Yee Hwa Yang
\end{Author}
\begin{SeeAlso}\relax
\code{\Link{write.table}}, \code{\Link{write}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
data(swirl)
test <- list(A = 1:10, B= maM(swirl)[1:10,], C=list(x=1:10, y=1:4),
             D = summary(maA(swirl[,1])))
write.list(test, filename="test.txt")
\end{ExampleCode}
\end{Examples}

