The R Journal is built upon the distill framework with some modifications. This output format behaves almost identically to the distill::distill_article() format, with some formatting and structural changes. The rjournal_article() format will produce both HTML and PDF outputs, while the rjournal_pdf_article() produces only the PDF output.

rjournal_article(toc = FALSE, self_contained = FALSE, legacy_pdf = FALSE, ...)

rjournal_pdf_article(..., self_contained = FALSE)

rjournal_web_article(toc = FALSE, self_contained = FALSE, ...)

Arguments

toc

TRUE to include a table of contents in the output

self_contained

Produce a standalone HTML file with no external dependencies, using data: URIs to incorporate the contents of linked scripts, stylesheets, images, and videos. Note that even for self contained documents MathJax is still loaded externally (this is necessary because of its size).

legacy_pdf

whether an article is from the past and only have pdf version

...

Arguments passed to distill::distill_article() for web articles, and rticles::rjournal_article() for pdf articles.

Value

the rendered R Journal article