Interactive dashboard with shinylive in R #11823
Replies: 5 comments 2 replies
-
The format or R/Python does not really matter. I'm not sure what you are looking for exactly.
Please do pay attention to shinylive note in the documentation of the extension, especially the very last part which might be what you are actually after:
Use shinylive-r as documented as a replacement of your regular code cells: ---
title: Demo ShinyLive
format: dashboard
filters:
- shinylive
---
# Page
## ShinyLive
::: {.card}
{{< lipsum 1 >}}
:::
## Code
```{r}
#| echo: false
#| include: false
library(shinylive)
```
```{shinylive-r}
#| standalone: true
#| viewerHeight: 450
library(shiny)
library(bslib)
ui <- page_sidebar(
title = "My dashboard",
sidebar = sidebar(
title = "Settings",
sliderInput("n", "Observations", 1, 100, 50, ticks = FALSE),
sliderInput("bins", "Bins", 1, 10, 5, step = 1, ticks = FALSE),
),
plotOutput("plot")
)
server <- function(input, output, session) {
output$plot <- renderPlot({
hist(rnorm(input$n), breaks = input$bins, col = "#007bc2")
})
}
shinyApp(ui, server)
``` |
Beta Was this translation helpful? Give feedback.
-
Thank you. I structured my dashboard in the following way. Without shinylive is working fine but no with shiny live.
|
Beta Was this translation helpful? Give feedback.
-
@ManuelSpinola currently you can't create interative dashboard ShinyApp running with shinylive directly. The feature we have in Quarto for Dahshboard and Shiny described at https://quarto.org/docs/dashboards/interactivity/shiny-r.html rely on the fact that Quarto will create a classic shiny app from your .qmd and then run it as a shiny app. This is also why there is a special Maybe this would be possible to take this shiny app produced by quarto and export it as a shinylive application (as I see an The other integration is the one mentioned in other reply above with the use of This will allow to embed some shinyapps inside a Quarto Document, so as example shared above, you can embed a shiny app inside a Dashboard. But your Quarto dashboard won't be a shiny app itself with possibly input on a side bar. Thanks for bringing the question. This is an interesting topic I keep in mind. |
Beta Was this translation helpful? Give feedback.
-
Thank you. I have very basic programming skills. I abandoned the idea of doing a dashboard. What about a shiny app in a quarto document.
|
Beta Was this translation helpful? Give feedback.
-
Thank you. Very helpful. |
Beta Was this translation helpful? Give feedback.
-
Description
Is there any examples of building an interactive dashboard with shinylive in R?
Beta Was this translation helpful? Give feedback.
All reactions