\documentclass[a4paper]{article}

\title{Sweave and Stangle Examples}
\author{Friedrich Leisch \and Vincent Goulet}

\usepackage{Sweave}
\begin{document}

\begin{Schunk}
\begin{Sinput}
> args <- commandArgs(TRUE)
> args
\end{Sinput}
\begin{Soutput}
[1] "nextArg--encoding=utf-8nextArgSweaveGetSourceName-tests.RnwnextArg--clean"
\end{Soutput}
\end{Schunk}

\end{document}
