如何使用rmarkdown渲染来渲染iSlides演示文稿?

如何使用rmarkdown渲染来渲染iSlides演示文稿?,r,r-markdown,ioslides,R,R Markdown,Ioslides,所以我有基本的模板和ioslides演示的参数。现在我在rstudio中使用knit按钮渲染它,但我想更改它并使用: rmarkdown::render(input = rmd_file, output_file = file.path(dirname(rmd_file), output_file), output_format = "html_document", outp

所以我有基本的模板和ioslides演示的参数。现在我在rstudio中使用knit按钮渲染它,但我想更改它并使用:

 rmarkdown::render(input = rmd_file,
                    output_file = file.path(dirname(rmd_file), output_file),
                    output_format = "html_document",
                    output_dir = paste0(getwd(), "/", output_folder),
                    params = params,
                    encoding = "utf-8",
                    envir = new.env(parent = globalenv()))

但输出文件看起来像简单的呈现html,并且没有表示格式

---
title: "Untitled"
author: "MS"
date: "30 10 2019"
output: ioslides_presentation
---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
#``` (this comment is here to add stackoverflow formating only)

## R Markdown

This is an R Markdown presentation. 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.

## Slide with Bullets

- Bullet 1
- Bullet 2
- Bullet 3

## Slide with R Output

```{r cars, echo = TRUE}
summary(cars)


## Slide with Plot

```{r pressure}
plot(pressure)
---
标题:“无标题”
作者:“MS”
日期:“2019年10月30日”
输出:ioslides\u演示文稿
---
```{r设置,include=FALSE}
knitr::opts_chunk$set(echo=FALSE)
#```(此注释仅用于添加stackoverflow格式化)
##降价
这是一个R降价演示。Markdown是一种用于编写HTML、PDF和MS Word文档的简单格式语法。有关使用R标记的更多详细信息,请参阅。
当您单击**Knit**按钮时,将生成一个文档,其中包括文档中任何嵌入的R代码块的内容和输出。
##用子弹滑动
-子弹1
-子弹2
-项目3
##带R输出的滑块
```{r cars,echo=TRUE}
摘要(车辆)
##带情节的幻灯片
```{r压力}
绘图(压力)

通过将YAML更改为:

---
title: "Untitled"
author: "MS"
date: "30 10 2019"
output:
  ioslides_presentation: default
  html_document: null
---
希望这对你有帮助