Displaying 1 result from an estimated 1 matches for "optionsr".
Did you mean:
options
2010 Nov 07
1
Sweave: option keep.source=TRUE and package cacheSweave
...e before the Sweave code chunk is
included in the TeX file to be compiled. For example, with the
following Sweave file
\documentclass[12pt]{article}
\usepackage[nogin]{Sweave}
% Sweave options
\SweaveOpts{keep.source=TRUE, strip.white=TRUE, eps=FALSE, pdf=TRUE}
\begin{document}
Blabla.
<<optionsR, results=hide>>=
setCacheDir("./cache")
library(MASS) ## just an example
@
\end{document}
I get the following TeX file:
\documentclass[12pt]{article}
\usepackage[nogin]{Sweave}
% Sweave options
\begin{document}
Blabla.
\begin{Schunk}
\begin{Sinput}
> \documentcla...