Learn R Programming

pandocfilters (version 0.1-6)

write.pandoc: Write the JSON-formatted AST to a connection

Description

Write the JSON-formatted AST to a connection.

Usage

write.pandoc(json, file, format, exchange = c("arg", "file"))

Arguments

json

a JSON representation of the AST to be written out

file

a connection object or a character string to which the JSON-formatted AST is written

format

a character string giving the format (e.g. "latex", "html")

exchange

a character string

Details

If you want to apply a filter to the document before it get's written out, or your pandoc installation is not registered in the PATH it can be favorable to provide your own writer function to the document class.