浮动TOC不';我不能在交互式RMarkdown中工作
我有一个交互式RMarkdown文档。目录(TOC)可以与浮动TOC不';我不能在交互式RMarkdown中工作,r,shiny,r-markdown,R,Shiny,R Markdown,我有一个交互式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 run
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()
这似乎是rmarkdown的1.12版本(以及新发布的1.13版本)的一个问题。我遇到了同样的问题,并找到了解决问题的方法 目前,通过以下方式安装rmarkdown的开发版本:
remotes::安装\u github('rstudio/rmarkdown'))
您尝试了什么web浏览器?我使用了firefox。在你的评论之后,我也尝试了Chrome,但它不起作用。同样的问题。你最终找到解决方案了吗?还没有解决方案:(
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