编织为rpptx_document无法识别我的ppt模板(officedown)
我正在尝试使用模板使用OfficeDown创建PowerPoint文档:
---
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()
```
因此,我得到了不使用模板的PowerPoint演示文稿。我似乎没有收到任何警告/错误消息:
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
请注意:
- 使用带有rmarkDown PowerPoint_presentation的模板,我没有问题。
- 我已经尝试过没有成功的尝试:使用PowerPoint Template with officedown href =“ https://github.com/davidgohel/offceedown/issues/65” rel =“ nofollow noreferrer”> https://github.com/davidgohel/offcehel/offceedown/offceedown/issues/issues/65
我真的会喜欢任何人帮助。
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 have no issues using the template with rmarkdown powerpoint_presentation.
- I've tried this without success: Use PowerPoint template with officedown and this one https://github.com/davidgohel/officedown/issues/65
I would really appreciate any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如David所说,Reference_doc是rpptx_document的论点:
As David said, reference_doc is an argument of rpptx_document: