Convenience function which tries to guess the ultimate output from knitr and rmarkdown.

guess_knitr_output_format()

## Value

"html", "latex", or something else. If we are not in a knitr document, returns an empty string.

## Examples

if (FALSE) {
# in a knitr document
guess_knitr_output_format()
}