BiocStyle (version 2.0.2)

output: Output format of an R Markdown document

Description

Helper function to determine the document's current pandoc output format.

Usage

output()

Arguments

Value

A character string specifying the pandoc output format.

Details

The function is useful for defining different behavior depending on the output format, e.g. figure settings.

Examples

Run this code
## Not run: 
# ## Switch between SVG and PDF figures depending on document output format
# knitr::opts_chunk$set(
#   dev = switch(output(), html = "svg", latex = "pdf")
#   )
# ## End(Not run)

Run the code above in your browser using DataLab