【发布时间】:2019-08-13 22:34:17
【问题描述】:
我有一个交互式 RMarkdown 文档。目录 (TOC) 可与 rmarkdown::render() 一起正常工作,但不适用于 rmarkdown::run()。
这是我的测试代码:
---
title: "Testing shiny Rmd"
output:
html_document:
toc: true
toc_float: true
number_sections: true
theme: united
highlight: textmate
runtime: shiny
---
# Section A
This is some text
# Section B
And some more text.
```{r,eval=FALSE}
data(iris)
plot(iris$Sepal.Length,iris$Sepal.Width)
```
这里是rmarkdown::render()
这里是rmarkdown::run()
R version 3.5.3 (2019-03-11)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
rmarkdown_1.12
shiny_1.2.0
【问题讨论】:
-
你试过什么浏览器?
-
我用的是火狐。在您发表评论后,我也在 Chrome 中尝试过,但它不起作用。
-
同样的问题。你终于找到解决办法了吗?
-
尚无解决方案:(
标签: r shiny r-markdown