[R] Scripting call to R-Studio compile PDF

Yihui Xie xie at yihui.name
Wed Oct 23 20:12:04 CEST 2013

RStudio also uses a "script" to compile Rnw files to PDF; you can see
all the "magic" in the "Compile PDF" pane (next to your "Console"
pane) after you click the button "Compile PDF".

Yihui Xie <xieyihui at gmail.com>
Web: http://yihui.name
Department of Statistics, Iowa State University
2215 Snedecor Hall, Ames, IA

On Wed, Oct 23, 2013 at 12:48 PM, Adam Hughes <hughesadam87 at gmail.com> wrote:
> Sorry, just to clarify:
> When I ask "how to do this", I mean what does the RStudio compiler actually
> do?  Are there a series of commands that are sent to the shell, similar to
> how compiling a .tex file is a call to the command line using "pdflatex
> foofile.tex".  I'm hoping to just copy these shell commands using a python
> script, which is easy.
> On Wed, Oct 23, 2013 at 1:39 PM, Adam Hughes <hughesadam87 at gmail.com> wrote:
>> Hey everyone,
>> I have several RStudio (.rnw) files that I am using a script to assemble
>> into a composite document.  For this purpose, it would be helpful if the
>> script could automatcially make a call to whatever is called when a user
>> opens up one of these files and manually clicks "Compile PDF".  Basically,
>> this would allow me to refresh all of the reports before assimilating their
>> pdf's into a composite document.
>> Does anyone know offhand how to do this, or if I'm offbase in even trying?
>> Thanks

More information about the R-help mailing list