Skip to content

shiny_prerendered_option_hook no longer works since xfun 0.38 version #2469

Closed

Description

@andreahgsin

Since the new version 0.38 of xfun and the modification of the function xfun::is_blank, this code no longer works :

if (xfun::is_blank(options$code)) {

To have the same behavior, it should be replaced by if (all(xfun::is_blank(options$code))) as suggested in the NEWS.md of xfun package.

Example :

---
title: "Hello Prerendered Shiny"
output: html_document
runtime: shiny_prerendered
---

```{r, echo=FALSE}
sliderInput("bins", "Number of bins:", min = 1, max = 50, value = 30)
plotOutput("distPlot")
output$distPlot <- renderPlot({
  x <- faithful[, 2]  # Old Faithful Geyser data
  bins <- seq(min(x), max(x), length.out = input$bins + 1)
  hist(x, breaks = bins, col = 'darkgray', border = 'white')
})

Thank you in advance !

Activity

  1. yihui commented on Mar 24, 2023

    @yihui
    Collaborator

    Ah, too bad that I didn't discover this in the revdep checks. I'll fix it in a minute. Thank you so much!

  2. moved this to Todo In Progress in R Markdown Team Projectson Mar 24, 2023
  3. added
    bug
    on Mar 24, 2023
  4. moved this from Todo In Progress to Done in R Markdown Team Projectson Mar 24, 2023
  5. added 2 commits that reference this issue on May 17, 2023
    95e0ac6
    2920cc6
  6. github-actions commented on Sep 27, 2023

    @github-actions

    This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

  7. locked as resolved and limited conversation to collaborators on Sep 27, 2023
  8. added a commit that references this issue on Oct 17, 2024
    c7fa3e4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions