1
예제 코드를 변경 :가 처음 앱이 잘 작동 :withMathJax 형식은
ui <- fluidPage(
withMathJax(),
tags$div(HTML("<script type='text/x-mathjax-config'>
MathJax.Hub.Config({
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
});
</script>
")),
sidebarPanel(sliderInput("k", "(k_{test})", value=2, min=1, max=3)),
mainPanel(uiOutput("out"))
)
server <- function(input, output, session){
output$out <- renderUI({ paste("(k_{test}=)", input$k)})
}
shinyApp(ui, server)
가 여기 내 문제입니다. 그러나 슬라이더의 입력을 변경할 때 출력 방정식이 형식을 잃어 버리고이를 수정하는 방법을 모르겠습니다.
미리 감사드립니다.