output {BiocStyle} | R Documentation |
Helper function to determine the document's current pandoc output format.
output()
The function is useful for defining different behavior depending on the output format, e.g. figure settings.
A character string specifying the pandoc output format.
Andrzej OleÅ› <andrzej.oles@embl.de>, 2016
## 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)