[R] Sweave, white space and code blocks

2011-03-21 Thread David.Epstein
Sweave is very useful, and I'm gradually getting used to it. I've just been battling Sweave over the re-use of code chunks. As I am pretty ignorant in the byways of both Sweave and R, this took a chunk of time to sort out. Here is what I learned: If one re-uses a code chunk, then Sweave (but not

Re: [R] Sweave, white space and code blocks

2011-03-21 Thread Dennis Murphy
Hi: I have a template preamble file for Sweave; near the bottom, I put in this commented code some time ago so I would never forget it: %% -- %% IMPORTANT NOTE %% All Sweave tokens MUST begin in column 1 or they will be