Learn R Programming

papaja (version 0.1.0.9655)

render_appendix: Render appendix

Description

This functions renders an R Markdown document without YAML header to a TeX fragment inside an appendix environment.

Usage

render_appendix(x, options = NULL, quiet = TRUE)

Arguments

x

Character. Input file name.

options

Character. Vector of options passed to pandoc_convert.

quiet

Logical. Suppresses pandoc command line output; see render. If FALSE output will be included in the document.

Details

By default x is converted to a TeX file which can be included in an R Markdown document as include:

   output:
     pdf_document:
       include:
       after_body: appendix.tex
   

If render_appendix is called form an R Markdown document with a target document type other than a PDF file a Markdown document is created and a warning returned (includes are only supported in PDF documents).

Default chunk options and hooks are set to those used in the R Markdown document from which render_appendix is called; otherwise defaults of md_document are used. It is, therefore, recommended to include render_appendix in your parent document.