I'm new to R. Any help would be greatly appreciated.
I would like to rotate a single page to landscape in R markdown (pdf).
In the YAML header I have added the following (based on a previous post):
header-includes:
- \usepackage{pdflscape}
- \newcommand{\blandscape}{\begin{landscape}}
- \newcommand{\elandscape}{\end{landscape}}
output: pdf_document
and then:
\blandscape
where I wish to change to landscape (is it correct that this should not be added to the code chunk?).
However I get an error message:
! LaTeX Error: \begin{landscape} on input line 193 ended by \end{document}.
This is probably a stupid question but do I need to download this package pdflscape? Or what am I doing wrong?
Thanks!
