precompile_rmd: Precompile HTML files

precompile_rmdR Documentation

Precompile HTML files

Description

Precompile HTML files

Usage

precompile_rmd(
  file,
  data = list(),
  runtime = "static",
  quiet = TRUE,
  precompiled_path,
  hasher = digest,
  section_divs = FALSE,
  md_extensions = "+tex_math_dollars",
  df_print = "kable",
  ...
)

Arguments

file

path to the RMarkdown file

data

a list of data to be made available to the Rmd file during rendering. Quoted items will be evaluated on the server before knitting the Rmd file. Quoted expressions are evaluated in the server context.

runtime, quiet

arguments passed on to rmarkdown::render().

precompiled_path

path where precompiled HTML file should be saved.

hasher

function to compute the unique hash for the input data.

section_divs, md_extensions, df_print...

passed on to rmarkdown::html_fragment().

show_only_with_section

render the output only if the section is visible.

Value

the path to the prerendered HTML file


dakep/stat305templates documentation built on Nov. 27, 2022, 8:23 a.m.