These functions may be useful for conditional output that depends on the
output format. For example, you may write out a LaTeX table in an R Markdown
document when the output format is LaTeX, and an HTML or Markdown table when
the output format is HTML.
Internally, the Pandoc output format of the current R Markdown document is
stored in knitr::opts_knit$get('rmarkdown.pandoc.to')
. By
default, these formats are considered as HTML formats: c('markdown',
'epub', 'html', 'html5', 'revealjs', 's5', 'slideous', 'slidy')
.