Skip to content
Discussion options

You must be logged in to vote

Here is a fully reproducible example:

Input Output
---
title: "Issue 11175"
format: html
server: shiny
---

```{r}
shiny::sliderInput("bins", "Number of bins:", min = 1, max = 50, value = 30)
plotly::plotlyOutput("distPlot")
```

```{r}
#| context: server
data("diamonds", package = "ggplot2")
output$distPlot <- plotly::renderPlotly({
  plotly::plot_ly(diamonds, x = ~price, y = ~ interaction(clarity, cut)) |>
    plotly::add_boxplot(color = ~clarity) |>
    plotly::layout(yaxis = list(title = ""))
})
```

Because server: shiny it means you need a running R server to run your Shiny App.
Quarto Pub has no server ability, thus the code cell context: server is not executed leading to nothi…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@curtisld
Comment options

@mcanouil
Comment options

Comment options

You must be logged in to vote
3 replies
@curtisld
Comment options

@cscheid
Comment options

@curtisld
Comment options

Comment options

You must be logged in to vote
1 reply
@curtisld
Comment options

Answer selected by curtisld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
publishing publishing-quartopub shiny Related to shiny integration for interactive document
3 participants