Re: SWeave and Lyx - managing the R code component

2010-09-10 Thread Graham Smith
Rainer Well - you could open the LyX document in a text editor, and do a search-replace, so that all chunks have the same option? Also something I did in the past. Yes, this is an option, but its an added complication I would rather avoid Howver, I haven't tried it as an option in the pre-

Re: SWeave and Lyx - managing the R code component

2010-09-10 Thread Liviu Andronic
On Fri, Sep 10, 2010 at 12:39 PM, Graham Smith wrote: > Liviu, > > This shows some promise. The echo=T within the chunks overrides the > SWeaveOpts command, and the although the code is suppressed you still get > the output, which is fine for the figures but not for some of the numerical > output

Re: SWeave and Lyx - managing the R code component

2010-09-10 Thread Graham Smith
Liviu, This shows some promise. The echo=T within the chunks overrides the SWeaveOpts command, and the although the code is suppressed you still get the output, which is fine for the figures but not for some of the numerical output However, this all looks promising as you could create object

Re: SWeave and Lyx - managing the R code component

2010-09-10 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/09/10 13:20, Graham Smith wrote: > Liviu > >> Have you tried to use \SweaveOpts{echo=T} for the with_code document, >> and 'echo=F' for the document with no code? You can also use this >> option on specific chunks as follows >> <>= >> @ > > I h

Re: SWeave and Lyx - managing the R code component

2010-09-10 Thread Graham Smith
Liviu Have you tried to use \SweaveOpts{echo=T} for the with_code document, and 'echo=F' for the document with no code? You can also use this option on specific chunks as follows <>= @ I have used this in specific chunks but it isn't practical for a full report. Howver, I haven't tried it as

Re: SWeave and Lyx - managing the R code component

2010-09-10 Thread Liviu Andronic
Hello On Fri, Sep 10, 2010 at 11:27 AM, Graham Smith wrote: > SWeave and Lyx are a great combination for combining R code and R output > into the same document and most of the time this is fine, but occasionally I > need a 2nd version without the code, but still any graphs produced by the > code.

SWeave and Lyx - managing the R code component

2010-09-10 Thread Graham Smith
Hello, I posted a similar question earlier, but without a response - maybe it wasn't worded properly, as I was in a bit of a panic, when it was posted. SWeave and Lyx are a great combination for combining R code and R output into the same document and most of the time this is fine, but occas