Return the rmarkdown document output type as string.

doc_type()

Value

Output document type as a string: "pdf", "html", or "other".

Details

For use in Rmarkdown documents. Returns the output document type as a string.

See also

Author

Dave Braze davebraze@gmail.com

Examples

doc_type()
#> [1] "other"