render_beamer: Render R Markdown to Beamer Presentation

Description Usage Arguments Details Value

View source: R/render-beamer.R

Description

Render R Markdown files destined to be Beamer PDF presentations with a double-rendering approach using a LaTeX engine of your choosing (or pdflatex, by default), to produce proper slide numbering.

Usage

1
render_beamer(input = NULL, cleanup = FALSE, ...)

Arguments

input

R Markdown File. See details.

cleanup

Logical. Should the intermediate TeX files be removed? Default is FALSE.

...

Additional named arguments passed to render.

Details

This function is a crude solution to the issue whereby R Markdown (.Rmd) documents being rendered to Beamer PDF presentations fail to render the total number of slides properly. This problem did not exist in previous verions, but currently exists.

Basically, this function renders the R Markdown to Markdown to TeX with a call to render. Then, the function uses a LaTeX engined specified by options(latex.engine = "your/path/here") or tries pdflatex, by default. The TeX file is rendered twice and then opened for viewing.

When specifying the input for this function, the path included in the input is used for writing any new files (including the final PDF). If only a file name is provided with no path, it is assumed that the current working directory should be used for writing.

Value

Invisibly, the rendered PDF path and file name.


mattwarkentin/sandbox documentation built on Jan. 29, 2020, 4:46 p.m.