template_pandoc: Render a pandoc template.

Description Usage Arguments Value Examples

View source: R/pandoc_template.R

Description

This is a hacky way to access the pandoc templating engine.

Usage

1
template_pandoc(metadata, template, output, verbose = FALSE)

Arguments

metadata

A named list containing metadata to pass to template.

template

Path to a pandoc template.

output

Path to save output.

Value

(Invisibly) The path of the generate file.

Examples

1
2
3
4
5
6
x <- rticles:::template_pandoc(
  list(preamble = "%abc", filename = "wickham"),
  rticles:::find_resource("rjournal_article", "RJwrapper.tex"),
  tempfile()
)
if (interactive()) file.show(x)

muuankarski/karskidocs documentation built on May 23, 2019, 10:52 a.m.