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
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
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
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
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
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
6 matches
Mail list logo