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".
Regards, Yihui -- Yihui Xie <xieyi...@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 <hughesada...@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 <hughesada...@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 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.