knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  echo = FALSE,
  warning = FALSE,
  message = FALSE
)
library(rjtools)
library(rmarkdown)
options(rmarkdown.html_vignette.check_title = FALSE)

The source files to create an html and pdf sample article are available here. The rendered pdf output can be viewed here and below is the html:

# webshot2::webshot(here::here("inst/sample-article/article.html"),
#                   file = here::here("vignettes/figures/webshot.png"),
#                   delay = 1, zoom = 4, vwidth = 1000, vheight = 300)
knitr::include_graphics("figures/webshot.png")


rjournal/rjtools documentation built on June 1, 2025, 2:51 p.m.