I'm working on a Latex document with lots of R code in it, so naturally enough it would be a good idea to use SWeave. But then I don't get to see the output as I'm editing. Or do I? Is there a tool to process a .Rnw file and incorporate the output from the commands into it (in a form that is not used for producing the output .tex file, but which is updated each time I process the file)? Duncan Murdoch
Friedrich.Leisch@tuwien.ac.at
2005-Nov-19 11:13 UTC
[R] SWeave - can I see output in the source?
>>>>> On Fri, 18 Nov 2005 13:49:36 -0500, >>>>> Duncan Murdoch (DM) wrote:> I'm working on a Latex document with lots of R code in it, so naturally > enough it would be a good idea to use SWeave. But then I don't get to > see the output as I'm editing. > Or do I? Is there a tool to process a .Rnw file and incorporate the > output from the commands into it (in a form that is not used for > producing the output .tex file, but which is updated each time I process > the file)? I'm not sure if I understand the question correctly, but if you edit Sweave files in Emacs using ESS you can send the code lines to a running R process, and there you see the output. At least that's how I write my Sweave files. When I want to see all at once I typically do a tangle & source. Best, Fritz
Possibly Parallel Threads
- Sweave processes \Sexpr in commented LaTeX source (2.3.1patched and 2.4.0)
- Sweave processes \Sexpr in commented LaTeX source (2.3.1patched and 2.4.0)
- Suggestion: Custom filename patterns for non-Sweave vignettes
- Apparent conflict between \Sexpr in Sweave and R2HTML
- including Sweave tangled code in '.Rnw' document