我有一个Rmarkdown文档,其中包含通过图像;
![图1.标题。](〜/桌面/工作/教学/ R / R markdown / Rmarkstart.png)
哪个工作正常。然后,我通过以下方式添加了Shiny:
---
title: "R markdown"
author: "Chris"
date: "21/05/2019"
output: html_document
runtime: shiny
---
,一切都顺利进行,除了不再显示数字,我无法弄清原因。没有错误抛出,图像只是不出现。
这有效:
---
title: "R markdown"
author: "Chris"
date: "21/05/2019"
output: html_document
---
```{r setup}
knitr::opts_chunk$set(echo = TRUE)
```
![**Figure 1. How a new Rmarkdown file looks.**](Rmarkstart.png)
这不行(可以正常运行,但是没有图像):
---
title: "R markdown"
author: "Chris"
date: "21/05/2019"
output: html_document
runtime: shiny
---
```{r setup}
knitr::opts_chunk$set(echo = TRUE)
```
![**Figure 1. How a new Rmarkdown file looks.**](Rmarkstart.png)