Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 在Shinny中显示LaTeX公式,MathJax不工作正常,如何在Shinny中使用本地MathJax?_R_Shiny_Shiny Server - Fatal编程技术网

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