我正在尝试使用模板创建带有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)
图书馆(办公大楼)
图书馆(主任)
图书馆(Dplyr)
## Table
```{r, echo = FALSE}ppt_template <- read_pptx("template.pptx")
layout_summary(ppt_template) %>%编织品::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.
我真的很感谢你的帮助。
发布于 2022-06-21 00:19:07
正如大卫所说,reference_doc是rpptx_document的一个论点:
---
date: "`r Sys.Date()`"
author: "Your Name"
title: "Officedown test"
output:
officedown::rpptx_document:
reference_doc: template.pptx
---https://stackoverflow.com/questions/72682283
复制相似问题