I am unable to produce a landscape orientation document when using RStudio and Rmarkdown.
R is version 3.4.2 RStudio is version 0.98.1103
I cannot change these as they are the latest versions on the cluster which I run my programs on.
After knitting the document, I do get a document out (in portrait form), however get the following error message:
Output created: test_landscape.docx
Warning message:
In (function (toc = FALSE, toc_depth = 3, fig_width = 5, fig_height = 4, :
table of contents for word_document requires pandoc >= 1.14
Reproducible code is here:
---
title: "test_landscape"
author: "Name"
date: "09/10/2018"
output: word_document
classoption: landscape
---
Test for landscape orientation
```{r}
summary(cars)
```
You can also embed plots, for example:
```{r, echo=FALSE}
plot(cars)
```
Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.
Unsure if this is more suited to cross validated, as R is a statistical programming language, but the question is not a statistical one.
Thank you.
EDIT: Have edited title to better represent my problem after the below comment.
classoption
is used for PDF output via LaTeX. I guess you have to use a different template for Word output in landscape format. – Packston