Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
浮动TOC不';我不能在交互式RMarkdown中工作_R_Shiny_R Markdown - Fatal编程技术网

浮动TOC不';我不能在交互式RMarkdown中工作

浮动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文档。目录(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()


这似乎是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