Hi I hope this is the right mailing list - if not, could you please refer me to a mora appropriate? My question: I am using sweave (in LyX with beamer) for a lecture and I would like to evaluate the R code chunks for the handout, but not for the presentation. I thought that I can use \SweaveOpts(eval=FALSE) to set this option for all code chunks, but it is still evaluating them and showing the output. If I set this option separately for each chunk(i.e. <<eval=FALSE>>=), it is, as expected, not evaluating. Am I doing something wrong here or is there a bug in sveawe, so that it is not axcepting eval=FALSE as a global option? Thanks a lot, Rainer -- Rainer M. Krug, Centre of Excellence for Invasion Biology, Stellenbosch University, South Africa
On 23/07/2009 8:58 AM, Rainer M Krug wrote:> Hi > > I hope this is the right mailing list - if not, could you please refer > me to a mora appropriate? > > My question: > > I am using sweave (in LyX with beamer) for a lecture and I would like > to evaluate the R code chunks for the handout, but not for the > presentation. > I thought that I can use \SweaveOpts(eval=FALSE) to set this option > for all code chunks, but it is still evaluating them and showing the > output. If I set this option separately for each chunk(i.e. > <<eval=FALSE>>=), it is, as expected, not evaluating. > > Am I doing something wrong here or is there a bug in sveawe, so that > it is not axcepting eval=FALSE as a global option?Looks like you used parentheses () instead of braces {} in the \SweaveOpts line. Even though LaTeX never sees it, it uses LaTeX-like syntax. Duncan Murdoch> > Thanks a lot, > > Rainer > >