rstudio / sortable

R htmlwidget for Sortable.js
https://rstudio.github.io/sortable/
Other
127 stars 30 forks source link

Sortable does not appear to operate under R4.3.2 in a Shiny App #111

Closed wdm0336 closed 2 months ago

wdm0336 commented 2 months ago

Simple shiny app shows sortable not running in 4.3.2. This app runs fine (can move the labels around and the input is updated) in R4.2.2.

Simply run the app and you see the input is set initially to NULL but no more updates after that.

App Code:

library(shiny)

ui <- fluidPage(
  fluidRow(
    sortable::rank_list(
      input_id = "sortable_test",
      text = "Letters to Sort",
      labels = letters[1:10]
    )
  ),
  fluidRow(
    textOutput("sortable_order")
  )
)

server <- function(input, output) {
  output$sortable_order <- renderText({
    paste(input$sortable_test, collapse = ", ")
  })
}

shinyApp(ui = ui, server = server)

Session Info:

> sessionInfo()
R version 4.3.2 (2023-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux

Matrix products: default
BLAS/LAPACK: /lrlhps/apps/intel/intel-2020/compilers_and_libraries_2020.0.166/linux/mkl/lib/intel64_lin/libmkl_gf_lp64.so;  LAPACK version 3.7.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
 [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

time zone: America/Indiana/Indianapolis
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] shiny_1.8.0

loaded via a namespace (and not attached):
 [1] cli_3.6.1         knitr_1.45        rlang_1.1.2       xfun_0.41        
 [5] promises_1.2.1    assertthat_0.2.1  jsonlite_1.8.7    xtable_1.8-4     
 [9] learnr_0.11.5     rprojroot_2.0.4   htmltools_0.5.7   httpuv_1.6.12    
[13] sortable_0.5.0    sass_0.4.7        rsconnect_1.1.1   evaluate_0.23    
[17] jquerylib_0.1.4   ellipsis_0.3.2    fastmap_1.1.1     yaml_2.3.7       
[21] lifecycle_1.0.4   memoise_2.0.1     compiler_4.3.2    htmlwidgets_1.6.3
[25] Rcpp_1.0.11       rstudioapi_0.15.0 later_1.3.1       digest_0.6.33    
[29] R6_2.5.1          magrittr_2.0.3    bslib_0.6.1       tools_4.3.2      
[33] withr_2.5.2       mime_0.12         cachem_1.0.8     
> 
wdm0336 commented 2 months ago

Looking more closely, this appears to be a duplicate of #108. I will close it.