Save a rmarkdown ioslides presentation as standalo

2019-08-06 11:53发布

问题:

I would like to save the presentation generated by knitr as a html file. Which I am able to share with people as standalone html file.

If I use Run Document button in R studio (server) this generates a file with the .Rmd extension.

---
title: "Standalone"
author: "MarketRedesign"
date: "10-7-2014"
output: ioslides_presentation
---

## Slide with R Code and Output

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

回答1:

When you press the knit HTML button, a HTML file IS always created by RStudio in the same directory as the R Markdown file lives in. The HTML file will also have the same name as the R Markdown file that was used to create it.