2014-10-01 89 views
2

我無法設法在RStudio 0.98.1049中編譯我的.Rmd文件,而之前(幾個星期前我猜測)它曾經工作過。Rmarkdown + Shiny中的Mathjax錯誤,即使Mathjax設置爲'null'

下面是一個例子:

--- 
title: 'Test' 
runtime: shiny 
output: html_document 
--- 

# Context 

Test 

我收到以下消息,即使我選擇mathjax: null添加到前面的代碼:

Error in pandoc_mathjax_local_path() : 
    For mathjax = "local", please set the RMARKDOWN_MATHJAX_PATH 
environment variable to the location of MathJax. 
On Linux systems you can also install MathJax using your system package manager. 

它完美,如果我刪除提及runtime: shiny ,但我想保留它以獲得交互式HTML文檔。 你看到它來自哪裏和/或我應該做什麼? 非常感謝。


這裏是我的sessionInfo():

R version 3.1.1 (2014-07-10) 
Platform: i386-w64-mingw32/i386 (32-bit) 

locale: 
[1] LC_COLLATE=French_France.1252 LC_CTYPE=French_France.1252 LC_MONETARY=French_France.1252 
[4] LC_NUMERIC=C     LC_TIME=French_France.1252  

attached base packages: 
[1] stats  graphics grDevices utils  datasets methods base  

loaded via a namespace (and not attached): 
[1] digest_0.6.4 htmltools_0.2.6 rmarkdown_0.3.3 tools_3.1.1  yaml_2.1.13 
+0

有人能夠重現我的(仍然存在的)問題嗎?謝謝。 – polmath 2014-10-21 09:16:23

+1

我按照給出的建議[這裏](https://github.com/rstudio/shiny/issues/619):我運行RStudio 0.98.1079,現在它再次運行。 – polmath 2014-10-21 09:28:38

回答

0

的rmarkdown軟件包的最新版本不捆綁MathJax了,作爲製作包過大,被允許在CRAN。但是,如果您安裝了最新版本的RStudio(最低版本:0.98.1058),它將包含MathJax,並會在rmarkdown中將它發佈到哪裏,以便解決此問題。