Vincke Grégoire
unread,Nov 3, 2013, 6:30:44 AM11/3/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to shiny-...@googlegroups.com
Hi,
I want tu put real HTML tags in labels of radio buttons and sliders in a
ui.R.
Instead of :
radioButtons("truehyp", "Model considered as true :",
list( "H1" = "h1",
"H0" = "h0")),
I have tested :
radioButtons("truehyp", "Model considered as true :",
list( HTML("H<sub>1</sub>") = "h1",
HTML("H<sub>0</sub>") = "h0")),
But it does not work, despite it works with checkboxes :
checkboxInput("alpha", HTML(" α | "), TRUE),
checkboxInput("showmu0", HTML(" μ<sub>0</sub> | "), TRUE),
The same problem exist with sliders :
sliderInput("mu0", HTML(" μ<sub>0</sub> : mean of H<sub>0</sub> :")
,min = 1,max = 100,value = 40, step=0.5),
will not render HTML put output it as raw text.
Does someone have a trick to render HTML tags in labels of radio/sliders
inputs ?
Thanks,
Gr�goire