簡體   English   中英

如何在 RStudio 上像這樣渲染 R 演示(ioslide)?

[英]How do I Render R-Presentation (ioslide) Like this on RStudio?

告訴我如何像這樣渲染R-Presentation 我在閱讀以了解如何制作R-Presentation時看到了許多示例,但是每次我像在RStudio上的正常R code一樣運行它們時,它們都拒絕渲染,盡管如果我ctr + v它只顯示封面頁。 像這樣我的MWE ,我知道這不是一張幻燈片演示,但我得到的只是這個

---
title: "Habits"
author: John Doe
date: March 22, 2005
output: ioslides_presentation
---

# In the morning

## Getting up

- Turn off alarm
- Get out of bed

## Breakfast

- Eat eggs
- Drink coffee

# In the evening

## Dinner

- Eat spaghetti
- Drink wine

---

```{r, cars, fig.cap="A scatterplot.", echo=FALSE}
plot(cars)
```

## Going to sleep

- Get in bed
- Count sheep

請告訴我在RStudiobottomclick RStudio本身呈現R-Presentationkeyboard shortcut

工作室

這需要.Rpres文件類型 NOT.Rmd(Rmarkdown)。

  1. 在 Rstudio 中打開一個新的文本文件

  2. 另存為file.Rpres

  3. 使用適當的語法因此 RStudio 知道如何呈現您的演示文稿

    In the morning ===================== Exercise Breakfast ===================== - Cereal

當您使用代碼保存文件時,Rstudio 將在通常的knit按鈕所在的位置有一個preview按鈕。 當您單擊preview時 Rstudio 將正確呈現文件。

在此處輸入圖像描述 我用這個鏈接進行研究

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM