daattali / shinyjs

💡 Easily improve the user experience of your Shiny apps in seconds
https://deanattali.com/shinyjs
Other
734 stars 119 forks source link

renderUI() fails with shinyjs 2.0 which works with shinyjs 1.0 #227

Closed iqbals closed 3 years ago

iqbals commented 3 years ago

I have an error:

Warning: Error in renderUI: attempt to apply non-function
  96: renderUI [/Users/sumaiya/Broad_Work/v2p/App/miscast07302020_replica/miscast07302020_r2/server.R#8281]
  95: func
  82: origRenderFunc
  81: output$msaResearchVSR
   1: shiny::runApp

thrown from following lines in the server.R

output$msaResearchVSR <- renderUI({
    gene_wise_info=read_delim(paste("gene_wise_info/",input$reportTgeneSelected,".txt",sep=''), "\t", escape_double = FALSE, trim_ws = TRUE)
    shinyjs::js$runMsa(containerId=msaContainerVSRId, aaInputId="aa_Selected", sequence=paste(gene_wise_info$`Amino Acid`, collapse=""))
  })

The code and my app runs perfectly with shinyjs 1.0, but when I installed shinyjs 2.0, I get this error. Any help will be very much appreciated

daattali commented 3 years ago

duplicate of #228