How to convert R Markdown to PDF?

后端 未结 8 1236
天命终不由人
天命终不由人 2020-11-28 00:36

I\'ve previously asked about the commands for converting R Markdown to HTML.

What is a good way to convert R Markdown files to PDF documents?

8条回答
  •  天命终不由人
    2020-11-28 01:23

    Right now (August 2014) You could use RStudio for converting R Markdown to PDF. Basically, RStudio use pandoc to convert Rmd to PDF.

    You could change metadata to:

    1. Add table of contents
    2. Change figure options
    3. Change syntax highlighting style
    4. Add LaTeX options
    5. And many more...

    For more details - http://rmarkdown.rstudio.com/pdf_document_format.htmlenter image description here

提交回复
热议问题