Error in brilliant knitting in RMarkdown. Error in appshot.shiny.appobj

I am creating a test page above #RMarkdown and am trying to add # Shiny content to it. When knitting with HTML, I get the following error.

Error in appshot.shiny.appobj (list (httpHandler = function (req):
applicationshot of Shiny app objects is not yet supported. Calls: ... in_dir β†’ do.call β†’ -> appshot.shiny.appobj Execution stopped

Please, help. What are the packages that will be required to run a brilliant application in #RMarkdown? Or what needs to be done to successfully run #shiny on #RMarkdown?

Below is my test code.

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

```{r tabs, echo=FALSE}

shinyApp(

  ui = fluidPage(
tabsetPanel(
        id = 'dataset',
        tabPanel('diamonds', DT::dataTableOutput('mytable1')),
        tabPanel('mtcars', DT::dataTableOutput('mytable2'))
      )
),

server = function(input, output) {
},
  options = list(height = 500)
)
```
+4
source share
1 answer

you need to add rmd to the header

runtime: shiny
+2
source

Source: https://habr.com/ru/post/1649003/


All Articles