[R] shinyWidgets::sliderTextInput

Sigbert Klinke @|gbert @end|ng |rom w|w|@hu-ber||n@de
Tue Aug 6 09:52:20 CEST 2019


Hi,

I'am using

sliderTextInput('myinput', choices=list("choice1"=1, "choice2"=2, 
"choice3"=3))

But in the shiny app the UI element shows '1', '2', instead of 
'choice1', 'choice2' etc.

I think the reason is that in shinyTextInput is done

     if (!is.character(choices)) {
         choices <- as.character(choices)
     }

Any idea if I could achieve my wished behaviour?

Best Sigbert

-- 
https://hu.berlin/sk
https://hu.berlin/mmstat3



More information about the R-help mailing list