Skip to content
Prev 44743 / 398528 Next

Sweave and sep = "\t"

In my .Snw file:

<<>>=
fyle <- choose.files()
fyle
f <- count.fields(fyle, sep = "\t")
f
@

and in the .tex file:

\begin{Schunk}
\begin{Sinput}
 > fyle <- choose.files()
 > fyle
\end{Sinput}
\begin{Soutput}
[1] "C:\\Files\\Data\\Cars03\\Rover.txt"
\end{Soutput}
\begin{Sinput}
 > f <- count.fields(fyle, sep = "   ")
 > f
\end{Sinput}
\begin{Soutput}
[1] 8 8 8 8 8
\end{Soutput}
\end{Schunk}

But I want the sep = "\t" to be left as is.

Murray