我试图用R生成一个flexdashboard并且想要在我的演示文稿中显示代码,但这似乎不起作用。 这里一个小例子:在flexdashboard中显示代码
---
title: "Test"
output:
flexdashboard::flex_dashboard
---
```{r setup, include=FALSE}
library(flexdashboard)
```
### Code
```{r, eval=FALSE, include=TRUE}
plot(iris$Sepal.Length, iris$Sepal.Width)
```
### Output
```{r, fig.align='center', echo = FALSE}
plot(iris$Sepal.Length, iris$Sepal.Width)
```
像fig.show = 'hide'
即使其他盘选项将无法正常工作。 是否可以在flex-panel的R-chuck中显示代码?代码突出显示将是一种优点,而不是纯文本。