R 在Shinny中显示LaTeX公式,MathJax不工作正常,如何在Shinny中使用本地MathJax?
我看到了这个帖子 我包括R 在Shinny中显示LaTeX公式,MathJax不工作正常,如何在Shinny中使用本地MathJax?,r,shiny,shiny-server,R,Shiny,Shiny Server,我看到了这个帖子 我包括 withMathJax("$a+b$"), 在我的ui.R文件中测试LaTeX输出,但我只获得“$a+b$”而不是渲染公式 我也试过了 withMathJax(includeMarkdown("equations.md")), 在equations.md中,我写了“a+b”并呈现ok,问题是在md文件中我无法链接,例如在server.R中: output$formula <- renderPrint({ cat(paste0("$$Kc = \\f
withMathJax("$a+b$"),
在我的ui.R
文件中测试LaTeX输出,但我只获得“$a+b$”而不是渲染公式
我也试过了
withMathJax(includeMarkdown("equations.md")),
在equations.md
中,我写了“a+b
”并呈现ok,问题是在md文件中我无法链接,例如在server.R中:
output$formula <- renderPrint({
cat(paste0("$$Kc = \\frac{(a^{",1,"})^{",2,"}}{b^{",3,"}}$$"))
})
输出$formula