I'm trying to create a powerpoint document with officedown using a template:
---
date: "`r Sys.Date()`"
author: "Your Name"
title: "Officedown test"
output:
officedown::rpptx_document:
reference_doc: template.pptx
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE, fig.cap = TRUE)
library(officedown)
library(officer)
library(dplyr)
```
## Table
```{r, echo = FALSE}
ppt_template <- read_pptx("template.pptx")
layout_summary(ppt_template) %>% knitr::kable()
```
As a result, I get a powerpoint presentation that doesn't use the template provided. I don't seem to get any warning/error message:
processing file: testing_officedown.Rmd
|.............. | 20%
inline R code fragments
|............................ | 40%
label: setup (with options)
List of 1
$ include: logi FALSE
|.......................................... | 60%
ordinary text without R code
|........................................................ | 80%
label: unnamed-chunk-1 (with options)
List of 1
$ echo: logi FALSE
|......................................................................| 100%
ordinary text without R code
"C:/.../RStudio/bin/quarto/bin/pandoc" +RTS -K512m -RTS testing_officedown.knit.md --to pptx --from markdown+autolink_bare_uris+tex_math_single_backslash --output testing_officedown.pptx --reference-doc "C:\...\AppData\Local\Temp\RtmpYZ89AI\filed7423372e06.pptx"
output file: testing_officedown.knit.md
Output created: testing_officedown.pptx
Please note that:
I would really appreciate any help.
As David said, reference_doc is an argument of rpptx_document:
---
date: "`r Sys.Date()`"
author: "Your Name"
title: "Officedown test"
output:
officedown::rpptx_document:
reference_doc: template.pptx
---