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

airDatepickerInput Not Working on Shiny Server but Works on RStudio Server #718

Open
jordanwebb10 opened this issue Nov 11, 2024 · 0 comments

Comments

@jordanwebb10
Copy link

Hello,

I’m experiencing an issue with airDatepickerInput from shinyWidgets when running a Shiny app on Shiny Server. The input works as expected on RStudio Server, on the same machine, but it fails to function correctly on Shiny Server, even with identical package versions and environment configurations. This includes testing both the CRAN version and the latest version from GitHub.

Issue Details
R version: "R version 4.3.3 (2024-02-29)"
Shiny Server version: jShiny Server v1.5.22.1017
shinyWidgets version: 0.8.6
Environment: Shiny Server on
Distributor ID: Ubuntu
Description: Ubuntu 24.04 LTS
Release: 24.04
Codename: noble

# Load required libraries
library(shiny)
library(shinyWidgets)

# Define the UI
ui <- fluidPage(
  titlePanel("Simple airDatepickerInput Test"),
  
  sidebarLayout(
    sidebarPanel(
      # Simple airDatepickerInput
      airDatepickerInput(
        inputId = "date_picker",
        label = "Select a date"
      )
    ),
    
    mainPanel(
      h3("Selected Date"),
      verbatimTextOutput("selected_date")
    )
  )
)

# Define server logic
server <- function(input, output, session) {
  # Display the selected date
  output$selected_date <- renderText({
    paste("Selected Date:", input$date_picker)
  })
}

# Run the application
shinyApp(ui = ui, server = server)

Observed Behavior
Expected: airDatepickerInput renders correctly, and selecting a date updates the output text.
Actual: The date picker doesn’t work as expected on Shiny Server. The input doesn’t display correctly or fails to update the selected date.
Additional Information

I’ve verified that:
Package versions are consistent between RStudio Server and Shiny Server.
Shiny Server has the necessary permissions and JavaScript dependencies.
The issue persists after installing shinyWidgets from GitHub using remotes::install_github("dreamRs/shinyWidgets").
If I role back to a previous version, the airDatePicker works as expected, however when I use the updateAirDatePicker, it will off put the date by a single day (I believe due to difference in the sever and pc)
Any guidance on resolving this would be greatly appreciated!

Thank you!

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