The goal of UtilsQuartoRSV is to provide utility functions to assist Quarto document creation when using R.

Installation

You can install the development version of UtilsQuartoRSV like so:

devtools::install_github("SATVILab/UtilsQuartoRSV")

Examples

library(UtilsQuartoRSV)
## basic example code

Pandoc syntax for including figures, tables and other elements

quartorsv_cat_pandoc_fig(
  path = "path/to/fig.png",
  cap = "Incredible hist() plot",
  label = "hist-plot",
  args = "width=50%",
  force_exists = FALSE
)
#> ![Incredible hist() plot](path/to/fig.png){#fig-hist-plot width=50%}