I want to display the -LaTeX formated-formula formula in the Shiny panel, but I cannot find a way to combine textOutput with withMathJax . I tried the following, but that did not work. Any help would be greatly appreciated.
- ui.r
... tabPanel("Diagnostics", h4(textOutput("diagTitle")), withMathJax(textOutput("formula")), ), ...
- server.r
... output$formula <- renderText({ print(paste0("Use this formula: $$\\hat{A}_{\\small{\\textrm{Mβ¬}}} =", my_calculated_value,"$$")) }) ...
r shiny mathjax
George dontas
source share