Is there a way to display HTML inside a selectInput in an R shiny app

Is there a way to display HTML tags such as Cu<sup>2+</sup> displaying as "Cu2+" inside a selectInput option in an R shiny app ? I would like to display chemical formulae for instance: library(shiny) ui <- fluidPage( withMathJax(), selectInput( inputId = "id", label = "Choice", choices = c(‘H<sub>2</sub> O’, ‘CO<sub>2 </sub>’,’NH<sub>4 </sub><sup>+<\sup>’) ) ) server… Read More Is there a way to display HTML inside a selectInput in an R shiny app

Pass the choices from selectInput on server side inside group_by function in Shiny app

I would like to pass the user selection to a group_by function in Shiny apps! The following code does not work, since the input$bearkdown is considered as a character! How I could fix that? dat = structure(list(year = c(2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2000, 2001, 2001, 2001, 2001, 2001,… Read More Pass the choices from selectInput on server side inside group_by function in Shiny app