rjournal_article: R Markdown output formats for R Journal articles

View source: R/rj_article.R

rjournal_articleR Documentation

R Markdown output formats for R Journal articles

Description

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.

Usage

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


rjtools documentation built on May 29, 2024, 9:57 a.m.