错误:未提供html_dependency的路径R Markdown selectInput

时间:2017-05-30 12:36:09

标签: r input markdown

我的R Markdown项目有问题。 我无法添加选择输入甚至是sliderInput。 当我单击生成网站时,我收到此错误消息:错误:未提供html_dependency的路径 执行停止 我看了很多话题,但我无法解决我的问题。

你能帮帮我吗? 提前谢谢你!

---
  title: "Untitled"
  author: "qc"
  date: "May 30, 2017"
  output: flexdashboard::flex_dashboard

---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(flexdashboard)
library(ggplot2)
library(shiny)
library(datasets)
```

输入{.sidebar}

```{r, echo=FALSE}

inputPanel(
radioButtons("category",label= "Select  Category",choices=c("diffPts","diffGF","diffGA","diffGD","diffpos"),inline = TRUE),

selectInput("dataset","Choose :", 
              choices = c("ezce","efzf","zef"))



```

2 个答案:

答案 0 :(得分:0)

首先,您错过了运行时:Rmd文件开头的闪亮 第二,你错过了关闭")"在inputPanel中

---

title: "Untitled"
author: "qc"
date: "May 30, 2017"
output: flexdashboard::flex_dashboard
runtime: shiny

---

```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(flexdashboard)
library(ggplot2)
library(shiny)
library(datasets)
```

Column {.sidebar}
-------------------------------------
```{r, echo=FALSE}

inputPanel(radioButtons("category",label= "Select  Category",choices=c("diffPts","diffGF","diffGA","diffGD","diffpos"),inline = TRUE))



selectInput("dataset","Choose :", 
              choices = c("ezce","efzf","zef"))



```

答案 1 :(得分:0)

当您使用rmarkdown::render而不是运行Shiny服务器所需的rmarkdown::run时,会出现此问题。