闪亮的UI:`withMathJax()`在radioButton和checkboxGroupInput中
Shining提供了闪亮的UI:`withMathJax()`在radioButton和checkboxGroupInput中,r,shiny,R,Shiny,Shining提供了withMathJax()函数来在UI中显示公式 我想显示一些math wihtin复选框和/或radiobutton选项,但无法正常工作 最小示例 require(shiny) runApp( list(ui = pageWithSidebar( headerPanel(withMathJax("$$\\text{Here it works }X_n=X_{n-1}-\\varepsilon$$")), sidebarPanel( radioButt
withMathJax()
函数来在UI中显示公式
我想显示一些math wihtin复选框和/或radiobutton选项,但无法正常工作
最小示例
require(shiny)
runApp(
list(ui = pageWithSidebar(
headerPanel(withMathJax("$$\\text{Here it works }X_n=X_{n-1}-\\varepsilon$$")),
sidebarPanel( radioButtons("test", withMathJax("$$\\text{Here it works too }X_n=X_{n-1}$$"),
choices = c(paste(withMathJax("$$\\text{Here it doesn`t work }X_n=X_{n-1}$$"), "= test"),
"Rohe Skalierung" = "raw",
"Ueber alle Werte" = "std",
"Innerhalb der Personen" = "gstd"))),
mainPanel( )
),
server= function(input, output, session){
}
)
)
受此启发,我尝试了以下解决方案:
require(shiny)
runApp(
list(ui = pageWithSidebar(
headerPanel(withMathJax("$$\\text{Here it works }X_n=X_{n-1}-\\varepsilon$$")),
sidebarPanel(withMathJax(), radioButtons("test", "\\(X_n=X_{n-1}\\)",
choices = c("\\(X_n= \\text{And Here it works to }X_{n-1}\\)" = "test",
"Rohe Skalierung" = "raw",
"Ueber alle Werte" = "std",
"Innerhalb der Personen" = "gstd"))),
mainPanel( )
),
server= function(input, output, session){
}
)
)