pandoc_export_data_file {pandoc}R Documentation

Export Pandoc internal data file

Description

This correspond to the --print-default-data-file CLI flag using also --output to write a export a data file built in Pandoc.

Usage

pandoc_export_data_file(file, output = file, version = "default")

pandoc_export_reference_doc(type = c("docx", "pptx"), version = "default")

Arguments

file

One of data file name included in Pandoc (e.g reference.pptx, styles.html)

output

Path where to export the file. Default to working directory with the same file name.

version

Version to use. Default will be the "default" version. Other possible value are

  • A version number e.g "2.14.1"

  • The nightly version called "nightly"

  • The latest installed version with "latest"

  • Pandoc binary shipped with RStudio IDE with "rstudio"

  • Pandoc binary found in PATH with "system"

type

one of docx or pptx depending on the reference doc to export.

Details

pandoc_export_reference_doc() is a helper to quickly get the reference doc for Word document (reference.docx) or Powerpoint document (reference.pptx)

Value

the output (invisibly) where export has been done

Examples



# export style.html file included in Pandoc HTML template
pandoc_export_data_file("styles.html", output = "custom.html")
# export css file used for epub by default
pandoc_export_data_file("epub.css")



pandoc_export_reference_doc("docx")
pandoc_export_reference_doc("pptx")



pandoc_export_reference_doc("pptx", version = "2.11.4")


[Package pandoc version 0.2.0 Index]