title: Can you access the output format of R Markdown at render time?
body: <p>I understand how to explicitly create and use parameters in R Markdown. I have a report with multiple output formats. At render time, I would like to know which output format is current target. Output format does not show up in <code>params</code>, but, following the DRY principle, I'd like to avoid adding an second, explicit parameter for this. Does anyone know a way to access output format at render time?</p>