Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: path for html_dependency not provided R Markdown selectInput

Tags:

markdown

r

input

I have a problem with my R Markdown project. I can not add a select input or even a sliderInput. When I click Build Website I get this error message: Error: path for html_dependency not provided Execution halted I watch many topics but I can not solve my problem.

Can you help me ? thank you in advance !

---
  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)
```

Inputs {.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"))



```
like image 385
crns Avatar asked May 30 '17 12:05

crns


2 Answers

First you were missing the runtime: shiny in the beginning of your Rmd file Second you were missing closing ")" in the 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"))



```
like image 194
user1016752 Avatar answered Nov 15 '22 17:11

user1016752


This issue comes up when you use rmarkdown::render instead of rmarkdown::run which is required to run the Shiny server.

like image 25
vladiim Avatar answered Nov 15 '22 18:11

vladiim