[R] Scripting call to R-Studio compile PDF

Yihui Xie xie at yihui.name
Thu Oct 24 08:28:29 CEST 2013


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 <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 6:02 PM, Adam Hughes <hughesadam87 at gmail.com> wrote:
> 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 filename.tex
>
>
> evince filename.pdf
>



More information about the R-help mailing list