\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
\begin{alltt}
\hlstd{fileConn}\hlkwb{<-}\hlkwd{file}\hlstd{(}\hlstr{"data.txt"}\hlstd{)}
\hlkwd{writeLines}\hlstd{(}\hlkwd{paste}\hlstd{(}\hlkwd{c}\hlstd{(}\hlnum{1}\hlopt{:}\hlnum{10}\hlstd{),} \hlkwc{collapse}\hlstd{=}\hlstr{", "}\hlstd{), fileConn)}
\hlkwd{close}\hlstd{(fileConn)}
\end{alltt}
\end{kframe}
\end{knitrout}