I have written a report using Lyx and SWeave.

After testing to see it worked with a couple of bits of code, I put all the code in a branch called code. The plan being to be able to produce two reports, one with code and one without.

However, even though it seemed to work when I tested it,now that I am finished, the file compiles fine with the code branch active, but if I switch off the branch containing the code I get an error.

An error occurred whilst running R CMD Sweave 'Jbats_3_ReportFinalArticle.Rnw'

Should the code work in branches. I'm not sure how SWeave works.

Some of the figures in the report draw on information generated by the code. I also have some bootstrapping.

Is there an easy  way of incuding and excluding code that I am missing.

Any suggestion very welcome.

Thanks,

Graham

Reply via email to