Re: [R] Using Sweave to generate multiple documents

2012-01-18 Thread Ramiro Barrantes
Just an FYI regarding this question. I found the answer on the DOCSTRIP, it allows you to create tags for different sections of your document, thus allowing one to generate multiple documents that share code. You can see an article about this in the December 2011 issue of the R Journal, its th

Re: [R] Using Sweave to generate multiple documents

2012-01-16 Thread Rainer Schuermann
Coming from a different angle: The LaTeX beamer class comes with the capability to produce different sets of documents from the same master file (presentation, handout, article...). That could get you where you want. For sweave questions, you may want to look at http://stackoverflow.com/questions/

Re: [R] Using Sweave to generate multiple documents

2012-01-16 Thread Michael Friendly
On 1/16/2012 4:20 PM, Ramiro Barrantes wrote: Hello, I tried looking for a Sweave-specific list but didn't find one, nor did I find an answer via google, so will send this question to the general R list. Please feel free to point me in the right direction. I am using Sweave and would like to

Re: [R] Using Sweave to generate multiple documents

2012-01-16 Thread Yihui Xie
I do not have a direct solution to your problem, but I think you may give the knitr package a try (not on CRAN yet but soon will be): it allows code chunks to be shared across different documents; see http://yihui.github.com/knitr/demo/externalization/ for what I call "code externalization". The sa

Re: [R] Using Sweave to generate multiple documents

2012-01-16 Thread Duncan Murdoch
On 12-01-16 4:20 PM, Ramiro Barrantes wrote: Hello, I tried looking for a Sweave-specific list but didn't find one, nor did I find an answer via google, so will send this question to the general R list. Please feel free to point me in the right direction. I am using Sweave and would like to

[R] Using Sweave to generate multiple documents

2012-01-16 Thread Ramiro Barrantes
Hello, I tried looking for a Sweave-specific list but didn't find one, nor did I find an answer via google, so will send this question to the general R list. Please feel free to point me in the right direction. I am using Sweave and would like to have a single .Rnw document that generates 1)