Re: [R] Scripting call to R-Studio compile PDF

2013-10-23 Thread Yihui Xie
Yes, that is pretty much it. Setting the options useDingbats or concordance is optional. You may or may not really need them. What is essential is the knit() function. Regards, Yihui -- Yihui Xie Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA

Re: [R] Scripting call to R-Studio compile PDF

2013-10-23 Thread Adam Hughes
Thanks for the help guys. Sorry, I will not post further RStudio questions here. Yihui, thanks for the tip. Looks like these commands would do: grDevices::pdf.options(useDingbats = FALSE); require(knitr); opts_knit$set(concordance = TRUE); knit('filename.rnw', encoding='UTF-8') pdflatex filen

Re: [R] Scripting call to R-Studio compile PDF

2013-10-23 Thread David Winsemius
On Oct 23, 2013, at 10:48 AM, Adam Hughes 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

Re: [R] Scripting call to R-Studio compile PDF

2013-10-23 Thread Yihui Xie
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 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor

Re: [R] Scripting call to R-Studio compile PDF

2013-10-23 Thread Adam Hughes
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

[R] Scripting call to R-Studio compile PDF

2013-10-23 Thread Adam Hughes
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". B