R brilliant display formula

I want to display the correct formula in the Shiny title, for example in Latex:

X_n = X_ {n-1} - \ varepsilon_n

shinyUI(pageWithSidebar( headerPanel("Display formula in heading X_n=X_{n-1}-\varesilon"), sidebarPanel( ), mainPanel( ) )) 
+7
r shiny formula
source share
1 answer

You can use withMathJax

 require(shiny) runApp( list(ui = pageWithSidebar( headerPanel(withMathJax("$$\\text{Display formula in heading }X_n=X_{n-1}-\\varepsilon$$")), sidebarPanel( ), mainPanel( ) ), server= function(input, output, session){ } ) 

)

MathJax example

+9
source share

All Articles