Depending on an R computation I would like to include an Sweave documents
in the main Sweave document.
How can I do it?

So I was thinking .... to use Latex features :

\newif\ifpaper

\ifpaper

\SweaveInput{"my1.Rnw"}
\else
 \SweaveInput{"my2.Rnw"}
\fi

But how do I set paper to true or false given an \Sexpr ??

\papertrue % or

\paperfalse


Any ideas?


cheers


-- 
Witold Eryk Wolski

Triemlistrasse 155
8047 Zuerich

	[[alternative HTML version deleted]]

