R/spec-knitr-knit-hooks.R

Defines functions spec_knit_hooks

spec_knit_hooks <- function(
    knit_hook_source = NULL, results_folding = c("none", "show", "hide")
) {
  results_folding = match.arg(results_folding)
  if (results_folding == "none") return(NULL)

  list(
    source = hook_start_results_folding(knit_hook_source),
    results.folding = hook_end_results_folding()
  )
}

Try the minidown package in your browser

Any scripts or data that you put into this service are public.

minidown documentation built on March 18, 2022, 7:29 p.m.