Cannot render Rmd file with runtime:shiny

Hello, looking at the official documentation : https://shiny.rstudio.com/articles/interactive-docs.html the code provided is not working for me.
I pasted the given code in test.Rmd

---
runtime: shiny
output: html_document
---

### Here are two Shiny widgets

```{r echo = FALSE}
selectInput("n_breaks", label = "Number of bins:",
              choices = c(10, 20, 35, 50), selected = 20)

sliderInput("bw_adjust", label = "Bandwidth adjustment:",
              min = 0.2, max = 2, value = 1, step = 0.2)

...that build a histogram.

renderPlot({
  hist(faithful$eruptions, probability = TRUE,
       breaks = as.numeric(input$n_breaks),
       xlab = "Duration (minutes)",
       main = "Geyser eruption duration")

  dens <- density(faithful$eruptions, adjust = input$bw_adjust)
  lines(dens, col = "blue")
})

and tried to rmarkdown::render("test.Rmd")
I got a Error: path for html_dependency not provided

Is what I do supposed to work ?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.