r - LaTeX formula in Shiny panel -


i want display -latex formated- formula in shiny panel, can't find way combine textoutput withmathjax. tried following didn't work. gratefully appreciated.

--ui.r

...     tabpanel("diagnostics", h4(textoutput("diagtitle")), withmathjax(textoutput("formula")), ), ... 

--server.r

... output$formula <- rendertext({     print(paste0("use formula: $$\\hat{a}_{\\small{\\textrm{m€}}} =", my_calculated_value,"$$")) }) ... 

ui.r

tabpanel("diagnostics", h4(textoutput("diagtitle")),     withmathjax(uioutput("formula")), ) 

server.r

output$formula <- renderui({     return(html(paste0("<p>,"use formula: $$\\hat{a}_{\\small{\\textrm{m€}}} =", my_calculated_value,"$$","</p>"))) }) 

Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -