[R] including Sweave tangled code in '.Rnw' document

2008-11-30 Thread Kyle Matoba
Hello List, I have been using Sweave for my homework this last quarter and have been very impressed at how much time and effort it saves me. I, however, have run up against a problem which I have not been able to solve using any of the Sweave/LaTeX tricks I know. I work through my homework one

Re: [R] including Sweave tangled code in '.Rnw' document

2008-11-30 Thread Berwin A Turlach
G'day Kyle, On Sat, 29 Nov 2008 11:11:37 -0800 Kyle Matoba [EMAIL PROTECTED] wrote: I have been using Sweave for my homework this last quarter [...] but would like to know if there is a clean way to do so using LaTeX or Sweave so that the latest version of the code is included in my homework

Re: [R] including Sweave tangled code in '.Rnw' document

2008-11-30 Thread Ista Zahn
a single document. -Ista -- Forwarded message -- From: Kyle Matoba [EMAIL PROTECTED] To: r-help@r-project.org Date: Sat, 29 Nov 2008 11:11:37 -0800 Subject: [R] including Sweave tangled code in '.Rnw' document Hello List, I have been using Sweave for my homework this last

Re: [R] including Sweave tangled code in '.Rnw' document

2008-11-30 Thread Vincent Goulet
Kyle, In addition to listings already mentioned by Berwin, you may find useful the answers package. This is what I use to create assignments/ exams/exercise sets with solutions all in one file. HTH Vincent --- Vincent Goulet, Associate Professor École d'actuariat Université Laval,

Re: [R] including Sweave tangled code in '.Rnw' document

2008-11-30 Thread Kyle Matoba
Vincent, Ista, Berwin: Thank you all for your help. It is great that a student like myself can receive help from Professors and experts such as yourselves. To the list, I found Berwin's solution to work excellently, though I chose to change the font of the included text, e.g. \texttt{