I cannot seem to get my rMarkdown code to honour the styles in my reference_docx document

180 Views Asked by At

I am trying to output a word document and use the reference document to force landscape orientation and a specific table format as the default. I even tried to add the line - classoption: landscape. I am relatively new to R so please be gentle with me. my test code is

---
title: "Untitled"
author: "my name"
date: "May 2021"
output: word_document
reference_docx: TestFormat.docx
classoption: landscape
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```

## R Markdown
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.

When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

```{r cars}
summary(cars)
```
0

There are 0 best solutions below