Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webR + format: html: smooth-scroll: true makes shinylive not working #46

Open
pawelru opened this issue Apr 9, 2024 · 0 comments
Open

Comments

@pawelru
Copy link

pawelru commented Apr 9, 2024

I came up that the combination of shinylive and webR extensions together with format: html: smooth-scroll: true makes shinylive not working. Everything is fine if I don't specify smooth-scroll: true.

image

Please find minimal example below

  1. Create dummy project
  2. Install both extensions
  3. Have the following:
  • file: index.qmd
---
title: "Tmp_quarto_1"
filters:
  - shinylive
  - webr
format:
  html:
    smooth-scroll: true
    resources:
      - shinylive-sw.js
---

```{shinylive-r}
#| standalone: true
library(shiny)

shinyApp(
    ui = fluidPage(
        numericInput("n", "n", 1),
        plotOutput("plot")
    ),
    server = function(input, output) {
        output$plot <- renderPlot( plot(head(cars, input$n)) )
    }
)
```

```{webr-r}
fit = lm(mpg ~ am, data = mtcars)
summary(fit)
```

file: _quarto.yaml:

---
project:
  type: website

filters:
  - webr
  - shinylive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant